We write numbers using only the digits 1,3,6,9 and arrange them in order. Our list begins 1, 3, 6, 9, 11, 13, 16, 19, 31, 33, ...

How many numbers do we write, which are smaller than 2022?