Rosetta Problems

Simple Grouping(★6)

https://atcoder.jp/contests/typical90/tasks/typical90_as