#include <stdio.h>
int main()
{
    long int age,time =31560000;
    scanf("%ld",&age);
    age = age * time;
    printf("%ld",age);
    return 0;
}