#include <iostream> #include <string> using namespace std; int main() { string s; int i; cin >> s >> i; cout << s[i+1] << "\n"; return 0; }