Solve SRM 170, Div 2, Problem LevelUp