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