corrected the sample input