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