{"raw_statement":[{"iden":"problem statement","content":"You are given a grid with $2$ rows and $3$ columns of squares. The color of the square at the $i$\\-th row and $j$\\-th column is represented by the character $C_{ij}$.\nWrite a program that prints `YES` if this grid remains the same when rotated $180$ degrees, and prints `NO` otherwise."},{"iden":"constraints","content":"*   $C_{i,j}(1 \\leq i \\leq 2, 1 \\leq j \\leq 3)$ is a lowercase English letter."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$C_{11}C_{12}C_{13}$\n$C_{21}C_{22}C_{23}$"},{"iden":"sample input 1","content":"pot\ntop"},{"iden":"sample output 1","content":"YES\n\nThis grid remains the same when rotated $180$ degrees."},{"iden":"sample input 2","content":"tab\nbet"},{"iden":"sample output 2","content":"NO\n\nThis grid does not remain the same when rotated $180$ degrees."},{"iden":"sample input 3","content":"eye\neel"},{"iden":"sample output 3","content":"NO"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}