#include <stdio.h>

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