Codeforces Round 977 Div 2 Based On Comfest 16 Candles