using System; namespace ConsoleApp11 { class Program { static void Main(string[] args) { double N = int.Parse(Console.ReadLine()); Console.WriteLine((316 - 52) + (N * 52)); } } }