Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
210 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int a, b,c;
	cin >> a;
	b = a / 100;
	c = a % 100;
	if ((b / 10) + (b % 10) == (c / 10) + (c % 10)) cout << "YES";
	else cout << "NO";


}