#include <stdio.h>

int main()
{
    int age = 0;
    //输入
    scanf("%d", &age); 
    //计算
    long sec = age * (long)3.156e7;
    //输出
    printf("%ld\n", sec);

    return 0;
}