Rosetta Problems

Only One Product Name

https://atcoder.jp/contests/abc374/tasks/abc374_g