import java.util.Scanner;
public class score{
public static void main(String[]argv){
int score;
Scanner sc=new Scanner(System.in);
score=sc.nextInt();
if (score>=0 && score<=10){
score*=6;
System.out.println(score);
}
else if (score>=11 && score<=20){
score=60+(score-10)*2;
System.out.println(score);
}
else if (score>=21 && score<=40){
score=80+(score-20)*1;
System.out.println(score);
}
else if (score>=40){
score=100;
System.out.println(score);
}
}
}