#include<iostream>

int main()
{
	long int num;
	std::cin >> num;
	std::cout << num*31560000;

	return 0;
}