#include <stdio.h>

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

本题考查了数字溢出用长整型的过程。