#include <stdio.h>

int main() {
    int age;
    while (scanf("%d", &age) != EOF) {
        printf("%lld", age * (long long)3.156e7);
    }
    return 0;
}