a, b = gets.chomp.split printf("%s %s\n", b, a)