Runtime Error when submitting but works fine for custom input


#1

The erroneous input is 6.