{"raw_statement":[{"iden":"problem statement","content":"A regular pentagon $P$ is shown in the figure below.\n![image](https://img.atcoder.jp/abc333/2d0c9295b03ff6d808c1ee9125045fc8.png)\nDetermine whether the length of the line segment connecting points $S_1$ and $S_2$ of $P$ equals the length of the line segment connecting points $T_1$ and $T_2$."},{"iden":"constraints","content":"*   Each of $S_1$, $S_2$, $T_1$, and $T_2$ is one of the characters `A`, `B`, `C`, `D`, and `E`.\n*   $S_1 \\neq S_2$\n*   $T_1 \\neq T_2$"},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$S_1S_2$\n$T_1T_2$"},{"iden":"sample input 1","content":"AC\nEC"},{"iden":"sample output 1","content":"Yes\n\nThe length of the line segment connecting point `A` and point `C` of $P$ equals the length of the line segment connecting point `E` and point `C`."},{"iden":"sample input 2","content":"DA\nEA"},{"iden":"sample output 2","content":"No\n\nThe length of the line segment connecting point `D` and point `A` of $P$ does not equal the length of the line segment connecting point `E` and point `A`."},{"iden":"sample input 3","content":"BD\nBD"},{"iden":"sample output 3","content":"Yes"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}