A game show offers a contestant three prizes A, B and C each of which is worth a whole number of rupees from Rs 1 to Rs 9999 inclusive, the contestant wins the prizes by correctly guessing the price of each prize in the order A, B and C. As a hint, the digits of the three prices are given. On a particular day, the digits given were 1,1,1,1,3,3,3. Find the total number of possible guesses for all three prizes consistent with the hint. write the answer in integer.