SRM 263 Div2 L1 [Brute force, Simulation]