import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        int age = in.nextInt();
        double sec = age * 3.156e7;
        System.out.println((long)sec);//注意类型转换,如果不转换,会输出科学计数法的结果
    }
}