s = input()
if s.count('1') % 2 == 0:
    s += '0'
else:
    s += '1'
print(s)

5cec89a094558d8d92ab194c06417e4d0e7a401d
<mask token>

<mask token>
if s.count('1') % 2 == 0:
    s += '0'
else:
    s += '1'
print(s)

s = input()
if s.count('1') % 2 == 0:
    s += '0'
else:
    s += '1'
print(s)
