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