Solution
3 3 4 4 2
3 3 4 2 2
1 1 4 5 2
1 1 5 5 5