1 #!/usr/bin/python3 2 3 s = input() 4 theirVersion = '' 5 myVersion = '' 6 7 for x in [s[i:i+8] for i in range(0, len(s), 8)]: 8 if x[0] == '1': 9 theirVersion += '1' + '0' * (len(x) - len(x.rstrip('0'))) 10 myVersion += x[0] 11 12 print(['No', 'Yes'][theirVersion == myVersion])