#include "iostream"
using namespace std;

int main(){
	int a;
	while(cin >> a){
		//cout << a << endl;
		int t1 = a / 10;
		int t2 = (a + 5) / 10;
		int ans = t1 + t2;
		cout << ans << endl;
	}
	return 0;
}