18 lines
211 B
Python
18 lines
211 B
Python
from itertools import chain
|
|
|
|
input = """
|
|
1721
|
|
979
|
|
366
|
|
299
|
|
675
|
|
1456
|
|
"""
|
|
|
|
l = map(int, input.split())
|
|
|
|
f = lambda n: ((n & 0xff), ((n >> 8) & 0xff))
|
|
|
|
for n in chain.from_iterable(map(f, l)):
|
|
print(f"{n:02x}")
|