import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int age = scanner.nextInt();
        long i = (long)(3.156 * Math.pow(10, 7));
        System.out.println(age * i);
    }
}