Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
278 B
2
Indexable
Never
#include <iostream>

using namespace std;

int main() 
{
    int a = 0;
    cin >> a;
    if (a / 1000) - (a % 10) == (a / 100 - (a / 1000 * 10) + (a % 100) - (a % 10)
    {
        cout << "yes";
    }
    else
    {
        cout << "no";
    }
    return 0;
}