Solve SRM 160, Div 2, Problem Substitute