Found an error when input is less than 3. Will work on fixing that in the future, for now you can't do that.