#include <iostream>using namespace std;
int main() { int a=0,b=0; cin>>a; b= a>=10? a>=20? a>=40? 100 :60+a :40+2*a :6*a; cout<<b;}