import java.util.Scanner;
public class main6u3 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
if (sc.hasNextLine()) {
String s = sc.nextLine();
int n = sc.nextInt();
if (n >= 0 && n < s.length()) {
System.out.print(s.charAt(n));
} else {
System.out.print("error");
}
}
sc.close();
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: