{"raw_statement":[{"iden":"problem statement","content":"You will be given a string $S$ of length $3$ representing the weather forecast for three days in the past.\nThe $i$\\-th character $(1 \\leq i \\leq 3)$ of $S$ represents the forecast for the $i$\\-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.\nYou will also be given a string $T$ of length $3$ representing the actual weather on those three days.\nThe $i$\\-th character $(1 \\leq i \\leq 3)$ of $S$ represents the actual weather on the $i$\\-th day. `S`, `C`, and `R` stand for sunny, cloudy, and rainy, respectively.\nPrint the number of days for which the forecast was correct."},{"iden":"constraints","content":"*   $S$ and $T$ are strings of length $3$ each.\n*   $S$ and $T$ consist of `S`, `C`, and `R`."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$S$\n$T$"},{"iden":"sample input 1","content":"CSS\nCSR"},{"iden":"sample output 1","content":"2\n\n*   For the first day, it was forecast to be cloudy, and it was indeed cloudy.\n*   For the second day, it was forecast to be sunny, and it was indeed sunny.\n*   For the third day, it was forecast to be sunny, but it was rainy.\n\nThus, the forecast was correct for two days in this case."},{"iden":"sample input 2","content":"SSR\nSSR"},{"iden":"sample output 2","content":"3"},{"iden":"sample input 3","content":"RRR\nSSS"},{"iden":"sample output 3","content":"0"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}