-
백준 27866 JAVAETC/Algorithm 2023. 5. 19. 23:20
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); String[] split = br.readLine().split(""); int i = Integer.parseInt(br.readLine()); bw.write(split[i-1]); bw.flush(); } }