#include <stdio.h>

int main() {
    int age;
    long s;//数据过大需要长整型
    scanf("%d",&age);
    s=age*31560000;
    printf("%ld",s);
    return 0;
}