Equation#3150

Equation

1 second
256 megabytes
Easy

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:

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.

Input

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.

Output

Print the value of the unknown string.

Examples

Example 1

Loading
Loading