{"raw_statement":[{"iden":"problem statement","content":"We have $A$ balls with the string $S$ written on each of them and $B$ balls with the string $T$ written on each of them.  \nFrom these balls, Takahashi chooses one with the string $U$ written on it and throws it away.  \nFind the number of balls with the string $S$ and balls with the string $T$ that we have now."},{"iden":"constraints","content":"*   $S$, $T$, and $U$ are strings consisting of lowercase English letters.\n*   The lengths of $S$ and $T$ are each between $1$ and $10$ (inclusive).\n*   $S \\not= T$\n*   $S=U$ or $T=U$.\n*   $1 \\leq A,B \\leq 10$\n*   $A$ and $B$ are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$ $T$\n$A$ $B$\n$U$"},{"iden":"sample input 1","content":"red blue\n3 4\nred"},{"iden":"sample output 1","content":"2 4\n\nTakahashi chose a ball with `red` written on it and threw it away. Now we have two balls with the string $S$ and four balls with the string $T$."},{"iden":"sample input 2","content":"red blue\n5 5\nblue"},{"iden":"sample output 2","content":"5 4\n\nTakahashi chose a ball with `blue` written on it and threw it away. Now we have five balls with the string $S$ and four balls with the string $T$."}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}