Codeforces 1837? beautiful bracket sequence hard version solution. Jellybean xo xxx. Койчы койчы братан. Bollyxxx.