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