1019: 公园门票
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
int number=cin.nextInt();
if(number>=30)
System.out.println(number*48);
else
System.out.println(number*50);
}
}