#include <stdio.h>

int main() 
{
    long int age = 0;

    scanf("%ld",&age);

    long int time = age*31560000;

    printf("%ld",time);//%ld打印长整型,%lld是打印更长整型

    return 0;
}