• + 1 comment

    Input format and sample input are different. The question is ambiguous.