using System.Collections.Generic; using System; using System.Linq; using System.Drawing; namespace yukicoder { class Program { static void Main(string[] args) { var N = int.Parse(Console.ReadLine()); int first = 316; long count = first + ((long)(N - 1) * 52); Console.WriteLine(count); } } }