Input format is now correct. Converted input string to int. Proceeding with sorting of values.