Created
December 10, 2017 02:01
-
-
Save whatalnk/21e097c86e1edf658e8385425e7cc866 to your computer and use it in GitHub Desktop.
AtCoder ABC #079
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
n = input() | |
if (n[0] == n[1] == n[2]) or (n[1] == n[2] == n[3]): | |
print("Yes") | |
else: | |
print("No") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment