CF Round 251 Div 2 Problem E