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