import java.util.Scanner;public class JAVA{public static void main(String args[]){Scanner time=new Scanner(System.in);long a,n;while(time.hasNext()){a=time.nextLong();n=a/12*50+a%12*5;System.out.println(n);}}}