Module: (C++) Data processing in a loop. Anchoring

Problem

7
/9

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 2^{64}).