# そもそも入力読むだけでどれくらい時間かかる? n = int(input()) s = input() print(s[n]) # コードテストでは python3 で 30ms かかった. # 一方 shobonvip さんの C++ の爆速実装が 33ms. # これは python での AC は諦めるしかないかなあ・・・