{"raw_statement":[{"iden":"problem statement","content":"Snuke has a very long calendar. It has a grid with $n$ rows and $7$ columns. One day, he noticed that calendar has a following regularity.  \n\n*   The cell at the $i$-th row and $j$-th column contains the integer $7i+j-7$.\n\nA good sub-grid is a $3 \\\\times 3$ sub-grid and the sum of integers in this sub-grid mod $11$ is $k$.  \nHow many good sub-grid are there? Write a program and help him."},{"iden":"input","content":"The input is given from standard input in the following format.  \n  \n\n> $n \\\\quad k$"},{"iden":"sample input 1","content":"7 7"},{"iden":"sample output 1","content":"2"},{"iden":"sample input 2","content":"6 0"},{"iden":"sample output 2","content":"2\n\nIf upper-left is $(1, 3)$ or $(4, 4)$, it is a good sub-grid."},{"iden":"sample output 3","content":"7"},{"iden":"sample output 4","content":"45"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}