João wrote all the powers of 2, 3, and 5 greater than 1 and less than 2017 on a sheet of paper. Then, he performed all possible products of two distinct numbers from this sheet and wrote them on another sheet of paper. What is the number of integers that João recorded on the second sheet?

#