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

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