Coin Denomination Design - hard

2 secs 1024 MB
ocv_contest's icon ocv_contest

testcase-4.txt


入力

出力