#include <stdio.h>

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