#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 to ; the second value is the tea quantity (in decimal), not exceeding . Please output the product of water temperature and tea quantity (in decimal).
Input Format
Line 1 contains the water temperature in binary, ranging from to ;
Line 2 contains the tea quantity in decimal, not exceeding .
Output Format
Output the product of water temperature and tea quantity in decimal.
Sample
0000110
1807951084770