{"problem":{"name":"ABCDEFG","description":{"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.)   The distances between adjacent points are as follows. *   Between $A$ and ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc305_b"},"statements":[{"statement_type":"Markdown","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$.\n\n## Constraints\n\n*   Each of $p$ and $q$ is `A`,`B`,`C`,`D`,`E`,`F`, or `G`.\n*   $p \\neq q$\n\n## Input\n\nThe input is given from Standard Input in the following format:\n\n$p$ $q$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc305_b","tags":[],"sample_group":[["A C","4\n\nThe distance between the points $A$ and $C$ is $3 + 1 = 4$."],["G B","20\n\nThe distance between the points $G$ and $B$ is $9 + 5 + 1 + 4 + 1 = 20$."],["C F","10"]],"created_at":"2026-03-03 11:01:13"}}