The quiz asks a student for the sum of the numbers
Determine if the student taking the quiz got the question correct
입력
The first and the only line of input contains a string of the form: a + b = c
It is guaranteed that a, b, and c are single-digit positive integers
The input line will have exactly 9 characters, formatted exactly as shown, with a single space separating each number and arithmetic operator
출력
Print, on a single line, YES if the sum is correct; otherwise, print NO
시간 제한: 1초
메모리 제한: 512 MB
"""
입출력 예시)
(예제 입력 1)
1 + 2 = 3
-> YES
(예제 입력 2)
2 + 2 = 5
-> NO
"""
## 의사코드 ##
# a, b, c는 모두 한 자리 양의 정수
# a + b = c 이면 yes
# 아니면 no
# '='으로 split해서 eval() 함수로 계산한 값이 같은지 확인
# string = input().split('=')
# if eval(string[0]) == int(string[1]):
통과한 코드
string = input().split('=')
if eval(string[0]) == int(string[1]):
print('YES')
else:
print('NO')