#include <math.h>
#define year 31560000
int main()
{
    int a = 0;
    scanf("%d",&a);
    long int b = a * year;
    printf("%ld",b);
    return 0;
}