include <stdio.h>

int main()
{
long long n=0;
scanf("%d",&n);
printf("%lld",n*31560000);
return 0;
}