{"raw_statement":[{"iden":"problem statement","content":"You are given $N$ integers $A_1,A_2,\\dots,A_N$, one per line, over $N$ lines. However, **$N$ is not given in the input.**  \nFurthermore, the following is guaranteed:\n\n*   $A_i \\neq 0$ ( $1 \\le i \\le N-1$ )\n*   $A_N = 0$\n\nPrint $A_N, A_{N-1},\\dots,A_1$ in this order."},{"iden":"constraints","content":"*   All input values are integers.\n*   $1 \\le N \\le 100$\n*   $1 \\le A_i \\le 10^9$ ( $1 \\le i \\le N-1$ )\n*   $A_N = 0$"},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$A_1$\n$A_2$\n$\\vdots$\n$A_N$"},{"iden":"sample input 1","content":"3\n2\n1\n0"},{"iden":"sample output 1","content":"0\n1\n2\n3\n\nNote again that $N$ is not given in the input. Here, $N=4$ and $A=(3,2,1,0)$."},{"iden":"sample input 2","content":"0"},{"iden":"sample output 2","content":"0\n\n$A=(0)$."},{"iden":"sample input 3","content":"123\n456\n789\n987\n654\n321\n0"},{"iden":"sample output 3","content":"0\n321\n654\n987\n789\n456\n123"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}