P11787 [AOJ] LR
普及
题目描述

Example

Input

R?????,2?)

Output

29

输入格式

见题面

输出格式

见题面

样例输入
R?????,2?)
样例输出
29