Programmer Vova has long been interested in various string problems. In this problem, we consider a string to be any sequence of ASCII characters with codes from to .
Recently, Vova learned about string operations:
Addition of strings, denoted by the symbol "". For example, Doctor+Who=DoctorWho.
Multiplication of strings, denoted by the symbol "". If S=A*B, then S=a_1+B+a_2+B+\ldots+a_n+B, where a_i is the -th character of string (the characters of the string are numbered starting from ). For example, aca*x=axcxax.
After that, Vova thought: why not come up with an equation in which the unknown is a string? He then began to solve the equations he invented.
Let us move to formal definitions. We will call an equation a sequence a_1°a_2°\ldots°a_n=b, where a_i is either an unknown string (denoted by "?"), or some specific non-empty string (written by the string's characters, without any additional symbols or delimiters), is a specific non-empty string, and the symbols "" may be either the addition or multiplication operations (different operators may occur in different positions). All operations are performed strictly from left to right; parentheses do not affect the operation order. It is guaranteed that there exists such that a_i = "?". The symbols "?", "", "", and "" are not used as characters in known strings. Additionally, all a_i and are non-empty strings.
It is required to solve such an equation, given that there is a non-empty solution.
The first line contains the string representing the equation. The number of operations does not exceed , and the length of the string is at most characters. The equation always contains at least one "?" symbol.
Print the value of the unknown string.
Example 1