#Lutece0469. 除法表达式

除法表达式

Migrated from Lutece 469 除法表达式

All parts of this problem, including description, images, samples, data and checker, might be broken. If you find bugs in this problem, please contact the admins.

Description

给出如下除法表达式EE

X1/X2/X3/..../Xk

其中XiX_i是正整数并且Xi2000000000X_i\le 2 000 000 000(1ik1\le i\le k, k10000k\le 10 000)。除法表达式应当按照从左到右的顺序求结果,例如表达式1/2/1/2的值是1/4。现在让你可以在表达EE中嵌入括号以改变计算顺序,例如表达式(1/2)/(1/2)的值是11。现在给你一个除法表达式EE,要求告诉是否能够通过加括号(或者不加)得到表达式EE'EE'的值为整数。

Input

输入数据包括多组数据,每组数据占一行,给出的是题目描述的表达式EEEE中不含空格。

Output

每个测试数据占一行如果能找到题目中描述的EE' 则输出YES(不含引号),否则输出NO (不含引号)。

Samples

1/2/1/2
2/3
YES
NO

Resources

Ural State University Problem Archive