https://www.acmicpc.net/problem/27866 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); int num = sc.nextInt(); System.out.println(str.charAt(num-1)); }}Colored by Color Scriptercs