#include<iostream>
using namespace std;
int main(){
int n;
while(cin >> n){
if(0<=n&&n<=100){
switch(n){
case 1 ... 10:
cout << n*6;
break;
case 11 ... 20:
cout <<60+n*2;
break;
case 21 ... 39:
cout <<80+n*1;
break;
default:
cout <<"100";
break;
}
}
}
}
#include
using namespace std;
int main(){
int n;
while(cin >> n){
if(0<=n&&n<=100){
switch(n){
case 1 ... 10:
cout << n*6;
break;
case 11 ... 20:
cout <<60+n*2;
break;
case 21 ... 39:
cout <<80+n*1;
break;
default:
cout <<"100";
break;
}
}45
}
}