Rosetta Problems

Combination of Presents

https://atcoder.jp/contests/awc0162/tasks/awc0162_c