2 3 5 X 2 2 Y -1 1
2 2 13 The grid changes as shown in the following image due to the great storms (the rightward direction is the positive direction of the $x$\-axis, and the upward direction is the positive direction of the $y$\-axis).  In the final grid, the following two connected components exist: * A connected component consisting of cells $(-1,-2), (0,-2)$. * A connected component consisting of cells $(1,-1), (1,0), (1,1), (1,2), (2,-1), (2,0), (2,1), (2,2), (3,2), (3,3), (3,4), (3,5), (3,6)$. Note that the number of cells in each connected component must be output **in ascending order**.
14 68875272 94216928 X 1630731 32914676 X 17164413 -33684569 X 26798060 5418308 X 34094469 -45675954 X 43889566 34125482 X 56836569 -22217058 X 64045210 27857939 Y -54561094 11587606 Y 93548188 32214521 Y -77361096 25750481 Y 27724899 1810420 Y 80945185 -7871305 Y 14782822 -2565089 Y 54687684 -22884393
8 21105046168287 22050167303226 33624667752182 223328231190194 441936776830492 1141371400772596 1141702254882183 3464097998105256 The output value may not fit in a 32-bit integer.
{
"problem": {
"name": "Suddenly, A Tempest",
"description": {
"content": "There is an infinitely large two-dimensional grid. The color of cell $(x,y)$ is black if $0 \\leq x \\leq X-1$ and $0 \\leq y \\leq Y-1$, and white otherwise. $N$ great storms occur in order on this grid.",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc432_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "There is an infinitely large two-dimensional grid. The color of cell $(x,y)$ is black if $0 \\leq x \\leq X-1$ and $0 \\leq y \\leq Y-1$, and white otherwise.\n$N$ great storms occur in order on this grid....",
"is_translate": false,
"language": "English"
}
]
}