Module: (Python) Processing data in a loop. Anchoring


Problem

6 /13


Data flow processing - 3

Problem

Given a non-empty sequence of integers ending in zero. Zero is not included in the sequence, it serves as a sign of its end. Find the product of the last digits of all numbers in the sequence greater than 13. If there are no such numbers, print 0.

Input 
The numbers of the sequence are given as input (all numbers are not more than 100 modulo). Zero - a sign of the end of input. 

Imprint 
Print the answer to the problem (it is guaranteed that the answer is always less than 264).
 

 

Examples
# Input Output
1 13
15
3
4
17
0
35