ONE_KM_TO_METER = 1/1000

meters = int(input())

km = meters * ONE_KM_TO_METER

print(f' {km:.2f}')

ONE_KM_TO_METER = 1/1000

meters = int(input())

km = meters * ONE_KM_TO_METER

print(f' {km:.2f}')
