#include using namespace std; int main() { string s; cin >> s; int l = s.length(); cout << abs(10-l) << endl; return 0; }