ABC C問題
ABC173 C - H and V