import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int digit = sc.nextInt(); StringBuilder ckc = new StringBuilder(); ckc.append("0."); for(int i = 1; i < 100; i++) { ckc.append(i); } System.out.println(ckc.charAt(digit + 1)); } }