/ckfinder/userfiles/files/VOI20192020/Manhatten%20Table.pdf
Input
5 3 3 2
Output
8
5 2 3 4
4
Nguồn: Thanh Hoàng