Created
August 18, 2018 13:53
-
-
Save showyou/a8d5c415c5c6ede65a7b4b9fcc520d38 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
S = input() | |
K = int(input()) | |
for i in range(len(S)): | |
if S[i] == '1': | |
if i == K: | |
print('1') | |
break | |
else: | |
print(S[i]) | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment