using System; using System.Text; using System.Linq; using System.Collections; using System.Collections.Generic; using static System.Console; using static System.Math; namespace YukiCoder { public class Program { public static void Main(string[] args) { new Program().Solve(); } public void Solve() { // [0, 100] int d = int.Parse(ReadLine()); string f = ""; for (int i = 1; i <= 100; i++) { f += i; } WriteLine(f); WriteLine(f[d-1]); } } }