{"raw_statement":[{"iden":"problem statement","content":"You are given an integer $N$ that has exactly four digits in base ten. How many times does `2` occur in the base-ten representation of $N$?"},{"iden":"constraints","content":"*   $1000 \\leq N \\leq 9999$"},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$"},{"iden":"sample input 1","content":"1222"},{"iden":"sample output 1","content":"3\n\n`2` occurs three times in `1222`. By the way, this contest is held on December $22$ (JST)."},{"iden":"sample input 2","content":"3456"},{"iden":"sample output 2","content":"0"},{"iden":"sample input 3","content":"9592"},{"iden":"sample output 3","content":"1"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}