Question 18
Sven loves the digit 7. He represents 0 by “7”, 1 by “77”, 2 by “777”, and so on. Whenever seven consecutive 7s occur, he replaces the last with S. For example, 16 is written “777777S777777S777”. How many S characters are used to write 2022?

