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