using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace template { class Program { static void Main(string[] args) { int[] x = new int[] { 7, 8, 9, 4, 5, 6, 1, 2, 3, 0 }; Console.WriteLine(x[int.Parse(Console.ReadLine())-1]); } } }