P11714 [AOJ] Miscalculation
普及
题目描述

Example

Input

1+2*3+4
11

Output

M

输入格式

见题面

输出格式

见题面

样例输入
1+2*3+4 11
样例输出
M