#import <stdio.h>
#import <Foundation/Foundation.h>

int main(int argc, char **argv) {
  int A, B, C;
  scanf("%d %d %d", &A, &B, &C);
  BOOL isValid = !(A == B && B == C) && !(A != B && B != C && C != A);
  printf("%s", isValid ? "Yes" : "No");
  return 0;
}