public class a{
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String[] str= new String[5];
System.out.println("請從控制臺輸入5個字符串,按回車確認!");
for(int i=0;i<5;i++){
str[i]=sc.nextLine();
}
for(int j=4;j>=0;j--){
System.out.println(str[j]);
}
}
}