Jonah's favourite number is a positive integer. One day, he decided to write down all of the positive integers starting at 1 and ending with his favourite number. He noticed, in doing so, that he wrote the digit 7 exactly 30 times. What is Jonah's favourite number?