using System; using System.Linq; using System.Collections.Generic; using System.Text.RegularExpressions; class Program { static void Main() { var N = long.Parse(Console.ReadLine()); //Console.WriteLine(((N - 1) * 52) + 316); long ans = 0; if (N >= 2) { ans = 316 + (52 * (N - 1)); } else if(N==1) { ans = N * 316; } Console.WriteLine(ans); } }