#include <stdio.h>
#include <math.h>
int main(){
    int age;
    long n = 3.156*pow(10,7);
    scanf("%d",&age);
    printf("%ld",age*n);
    return 0;
}