FERMAT 2022 Problem 15

A positive integer a is input into a machine. If a is odd, the output is a+3. If a is even, the output is a+5. This process can be repeated using each successive output as the next input. For example, if the input is a=1 and the machine is used three times, the final output is 12 . If the input is a=15 and the machine is used 51 times, the final output is

Answer Choices
A. 213
B. 218
C. 212
D. 220
E. 215