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