Judgment of Expression
题号:NC214471
时间限制:C/C++/Rust/Pascal 1秒,其他语言2秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

Given an expression check if it is valid. If the value on the left side of the equation is equal to the right side, then the expression is valid.

输入描述:

Only 1 test case for each Input. Every test case is an expression string. You may assume we don't have brackets and negative integers in the equation. The equation only contains four operators: addition(+), subtraction(-), multiplication(*) and division(/). If the value of the left side is decimal, round them up to the nearest whole number.

输出描述:

Output "V" if the equation is valid otherwise "NV".
示例1

输入

复制
1+2=3

输出

复制
V
示例2

输入

复制
1+4*3=12

输出

复制
NV
示例3

输入

复制
5/4=1

输出

复制
V