public class test {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("输入:");
String str = scanner.nextLine();
String[] strs = str.split(" ");
for(int i = strs.length-1;i>=0;i--)
{
System.out.print(strs[i]+" ");
}
System.out.print(" ");
}
}