#-*- coding:utf-8 -*- if __name__ == "__main__": a, b = input().split() print("{} {}".format(b, a))