import java.io.*; import java.lang.*; import java.util.StringTokenizer; public class Mots { public static void main(String[] args) { // Tampon (buffer) du flux d'entrée standard (clavier) BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String[] mots = new String[20]; String m; int n = 0; try { String liste = in.readLine(); StringTokenizer tokens = new StringTokenizer(liste, " "); while(tokens.hasMoreTokens()) { mots[n++] = tokens.nextToken(); } int length = n; for(int i = length - 1; i >= 0; i--) { System.out.println(mots[i]); } } catch(Exception e) { System.out.println("Entrée invalide !!"); } } // main() } // class Mots