Parentheses#5205

Parentheses

1 second
128 megabytes
Very easy

The pattern is given. It consists of parentheses and question marks.

Find in how many ways one can replace the question marks with parentheses to obtain the correct bracket sequence.

Input

One line contains the pattern of length no more than symbols.

Output

Print the number of ways to get the correct bracket sequence by modulo .

Examples

Example 1

Loading
Loading