{"problem":{"name":"Delimiter","description":{"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.**   Furthermore, the following is guaranteed: *   $A_i \\neq 0$ ( $1 \\le i \\le N","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc344_b"},"statements":[{"statement_type":"Markdown","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.\n\n## Constraints\n\n*   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$\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$A_1$\n$A_2$\n$\\vdots$\n$A_N$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc344_b","tags":[],"sample_group":[["3\n2\n1\n0","0\n1\n2\n3\n\nNote again that $N$ is not given in the input. Here, $N=4$ and $A=(3,2,1,0)$."],["0","0\n\n$A=(0)$."],["123\n456\n789\n987\n654\n321\n0","0\n321\n654\n987\n789\n456\n123"]],"created_at":"2026-03-03 11:01:14"}}