var = input() output = '' list1 = var.split(' ') list1.reverse() string1 = ' '.join(list1) for i in string1: output = output + i print(output)