# 6009

i = input()
print(i)

# 6010

i = int(input())
print(i)

# 6011

print(float(input()))

# 6012

a = input()
b = input()
print(a)
print(b)

# 6013

a = input()
b = input()
print(b)
print(a)


# 6014

i = input()
print(i)
print(i)
print(i)

# 6015

a, b = input().split()
print(a)
print(b)

# 6016

a, b = input().split()
print(b, a)

# 6017

i = input()
print(i, i, i)

# 6018

print(input())

# 6019

y, m, d = input().split('.')

print(f'{d}-{m}-{y}')

# 6020

a, b = input().split('-')
print(f'{a}{b}')

# 6021

i = input()
print(i[0])
print(i[1])
print(i[2])
print(i[3])
print(i[4])

# 6022

i = input()
print(i[0: 2])
print(i[2: 4])
print(i[4: 6])

# 6023

h, m, s = input().split(':')
print(m)

# 6024

a, b = input().split()
print(a + b)