#P420. 练72.1  茶道

练72.1  茶道

Description

Tea ceremony is the art of preparing and drinking tea. Good tea requires proper brewing methods, with careful consideration of water temperature and tea quantity. Water temperature and tea quantity are the limiting factors for tea quality. Given two values: the first value is the water temperature (in binary), ranging from 00 to 100100; the second value is the tea quantity (in decimal), not exceeding 48000004800000. Please output the product of water temperature and tea quantity (in decimal).

Input Format

Line 1 contains the water temperature in binary, ranging from 00 to 100100;
Line 2 contains the tea quantity in decimal, not exceeding 48000004800000.

Output Format

Output the product of water temperature and tea quantity in decimal.

Sample

0000110
180795
1084770