#include <bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; int m = (n - n % 10) / 10; cout << n - m; return 0; }