#include <bits/stdc++.h> using namespace std; int main() { char c; cin>>c; cout<<(c+10-30)*20/5; return 0; }