fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a,b,c,d;
  6. cin >> a >> b >> c >> d;
  7. if (a == b && c == d){
  8. cout << "YES";
  9. } else {
  10. cout << "NO";
  11. }
  12. }
Success #stdin #stdout 0.01s 5312KB
stdin
2
2
3
3
stdout
YES