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