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