using System; class Program { static void Main() { int X = int.Parse(Console.ReadLine()); // Xごとの最初の停止までの移動距離 int answer = X switch { 2 => 2, 3 => 5, 4 => 4, _ => -1 // 到達しない(問題では出ないと想定) }; Console.WriteLine(answer); } }