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