{"problem":{"name":"Calendar","description":{"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.   *   The cell at the $i$-th row and $j$-th column contains ","description_type":"Markdown"},"platform":"AtCoder","limit":{"time_limit":1000,"memory_limit":262144},"difficulty":"None","is_remote":true,"is_sync":true,"sync_url":null,"sign":"s8pc_3_a"},"statements":[{"statement_type":"Markdown","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.\n\n## Input\n\nThe input is given from standard input in the following format.  \n  \n\n> $n \\\\quad k$\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"s8pc_3_a","tags":[],"sample_group":[],"created_at":"2026-03-03 11:01:14"}}