while True:
    try:
        line = list(input().split(' '))
        print(' '.join(line[::-1]))
    except:
        break