#include <stdio.h>

int main() {
    int age;
    double second = 3.156e7;
    scanf("%d", &age);
    printf("%.0lf", age*second);
    return 0;
}