/ckfinder/userfiles/files/111/Thi%20thu%20DHBB.pdf
Input
4 1 2 1 1
Output
9
Nguồn: BHBB Thi thử lần 1 - 2020