from sys import stdin, stdout

for _ in range (6):
   bs = stdin.buffer.read(4)
   n = int.from_bytes (bs, byteorder='big')
   stdout.write (f'{n:13,d}\n')