using System; using System.Text; public static class Program { const int MAX = 100; static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); var sb = new StringBuilder(); int num = 0; while (sb.Length <= MAX) { if (sb.Length >= MAX) break; sb.Append(num + 1); num++; } string C_10 = sb.ToString(); Console.WriteLine(C_10[N-1]); } } // class Program