Rosetta Problems

つながれた風船

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/175