CAYLEY 2014 Problem 10

Consider the following flowchart:

If the OUTPUT is 32, the INPUT must have been

Answer Choices
A. 16
B. 28
C. 36
D. 40
E. 32