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