{"problem":{"name":"Tenki","description":{"content":"You will be given a string $S$ of length $3$ representing the weather forecast for three days in the past. The $i$\\-th character $(1 \\leq i \\leq 3)$ of $S$ represents the forecast for the $i$\\-th day.","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":2000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"abc139_a"},"statements":[{"statement_type":"Markdown","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.\n\n## Constraints\n\n*   $S$ and $T$ are strings of length $3$ each.\n*   $S$ and $T$ consist of `S`, `C`, and `R`.\n\n## Input\n\nInput is given from Standard Input in the following format:\n\n$S$\n$T$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"abc139_a","tags":[],"sample_group":[["CSS\nCSR","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."],["SSR\nSSR","3"],["RRR\nSSS","0"]],"created_at":"2026-03-03 11:01:13"}}