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