#include <iostream>
#include<cmath>
using namespace std;

int main() {
    int age;
    cin >> age;
    long long seconds = age * 3.156*pow(10,7);
    cout << seconds;
}
// 64 位输出请用 printf("%lld")