#include <iostream> using namespace std; int main(){ char A; cin>>A; cout<<(A+10-30)*20/5<<endl; return 0; }