Denis has identical ten-ruble coins, identical two-ruble coins, and identical one-ruble coins (more than 20 coins of each type). In how many ways can Denis pay exactly 16 rubles for a pie without receiving change? It is not necessary to use coins of each type.