Created
April 2, 2019 00:15
-
-
Save lucasgsa/4b06e106de083c39b07a711052517787 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
while True: | |
try: | |
a = raw_input() | |
a = a.replace("l","1") | |
a = a.replace("o","0") | |
a = a.replace("O","0") | |
a = a.replace(",","") | |
a = a.replace(" ","") | |
if int(a) > 2147483647: | |
print "error" | |
else: | |
print int(a) | |
except EOFError: | |
break | |
except: | |
print "error" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment