#P194. 【例32.3】 数位积

【例32.3】 数位积

Description

Given a non-negative integer nn, find the product of the digits in nn.

Input Format

The first line contains an integer TT (1T1001≤T≤100), indicating the number of test cases. This is followed by TT integers nn (0n<21474836480≤n<2147483648).

Output Format

Output the product of the digits for each test case.

Sample

3
356
123
9999
90
6
6561