using System; public class Program { public void Solve() { const int diff = 52; long page = 316; long N = long.Parse(Console.ReadLine()); for (int i = 1; i < N; i++) { page += diff; } Console.WriteLine(page); } public static void Main(string[] args) { Program program = new Program(); program.Solve(); } }