#include using namespace std; typedef long long ll; int main() { string s; cin >> s; int n = s.size(); cout << abs(10-n) << endl; return 0; }