using System; using System.Collections.Generic; class Program { static string InputPattern = "InputX"; static List GetInputList() { var WillReturn = new List(); if (InputPattern == "Input1") { WillReturn.Add("1"); //316 } else if (InputPattern == "Input2") { WillReturn.Add("2"); //368 } else if (InputPattern == "Input3") { WillReturn.Add("987654321"); //51358024956 } else { string wkStr; while ((wkStr = Console.ReadLine()) != null) WillReturn.Add(wkStr); } return WillReturn; } static void Main() { List InputList = GetInputList(); long N = long.Parse(InputList[0]); //初項316 公差52の等差数列の一般項 Console.WriteLine(316 + 52 * (N - 1)); } }