{"raw_statement":[{"iden":"problem statement","content":"There is a device with a screen that shows a single-digit number, and a button.\nWhen the screen is showing a number $k$, pressing the button once changes the number on the screen to $a_k$.\nThe device currently shows $0$. After pressing the button $3$ times, what will be shown on the screen?"},{"iden":"constraints","content":"*   $0\\leq a_i \\leq 9$\n*   All values in input are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$a_0$ $a_1$ $\\dots$ $a_9$"},{"iden":"sample input 1","content":"9 0 1 2 3 4 5 6 7 8"},{"iden":"sample output 1","content":"7\n\nThe number on the screen transitions as $0 \\rightarrow 9 \\rightarrow 8 \\rightarrow 7$."},{"iden":"sample input 2","content":"4 8 8 8 0 8 8 8 8 8"},{"iden":"sample output 2","content":"4\n\nThe number on the screen transitions as $0 \\rightarrow 4 \\rightarrow 0 \\rightarrow 4$."},{"iden":"sample input 3","content":"0 0 0 0 0 0 0 0 0 0"},{"iden":"sample output 3","content":"0"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}