{"raw_statement":[{"iden":"problem statement","content":"There are $7$ points $A$, $B$, $C$, $D$, $E$, $F$, and $G$ on a straight line, in this order. (See also the figure below.)  \nThe distances between adjacent points are as follows.\n\n*   Between $A$ and $B$: $3$\n*   Between $B$ and $C$: $1$\n*   Between $C$ and $D$: $4$\n*   Between $D$ and $E$: $1$\n*   Between $E$ and $F$: $5$\n*   Between $F$ and $G$: $9$\n\n![image](https://img.atcoder.jp/ghi/abc305b_33d2c7bcdf92725cf9145e524f6907c76fd1f50fe06fd37b511b8bd3c27e3638.jpg)\nYou are given two uppercase English letters $p$ and $q$. Each of $p$ and $q$ is `A`, `B`, `C`, `D`, `E`, `F`, or `G`, and it holds that $p \\neq q$.  \nFind the distance between the points $p$ and $q$."},{"iden":"constraints","content":"*   Each of $p$ and $q$ is `A`,`B`,`C`,`D`,`E`,`F`, or `G`.\n*   $p \\neq q$"},{"iden":"input","content":"The input is given from Standard Input in the following format:\n\n$p$ $q$"},{"iden":"sample input 1","content":"A C"},{"iden":"sample output 1","content":"4\n\nThe distance between the points $A$ and $C$ is $3 + 1 = 4$."},{"iden":"sample input 2","content":"G B"},{"iden":"sample output 2","content":"20\n\nThe distance between the points $G$ and $B$ is $9 + 5 + 1 + 4 + 1 = 20$."},{"iden":"sample input 3","content":"C F"},{"iden":"sample output 3","content":"10"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}