Марковников Никита, 2537

two 2D arrays access should be faster than using 3D array