Removed isRepeating() from 26 since it didn't work, and the program gave a correct output without it.