GAUSS8 2011 Problem 19

How many positive integers less than 400 can be created using only the digits 1,2 or 3, with repetition of digits allowed?

Answer Choices
A. 30
B. 33
C. 36
D. 39
E. 42