#include <iostream>
int main()
{
double a, b, x, y, z;
a = b = x = y = z = 0;
std::cout << "A= "; std::cin >> a;
std::cout << "B= "; std::cin >> b;
std::cout << "X= "; std::cin >> x;
std::cout << "Y= "; std::cin >> y;
std::cout << "Z= "; std::cin >> z;
if ((a == x && b == y) && (a == y && b == x))
std::cout << "YES\n";
}
else
std::cout << "NO\n";
return 0;
system("pause");
#include <iostream>
int main()
{
double a, b, x, y, z;
a = b = x = y = z = 0;
std::cout << "A= "; std::cin >> a;
std::cout << "B= "; std::cin >> b;
std::cout << "X= "; std::cin >> x;
std::cout << "Y= "; std::cin >> y;
std::cout << "Z= "; std::cin >> z;
if ((a == x && b == y) && (a == y && b == x))
{
std::cout << "YES\n";
}
else
{
std::cout << "NO\n";
}
return 0;
system("pause");
}