inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
l = inp.shift().split(' ')
A = l.shift() * 1
B = l.shift() * 1
C = l.shift() * 1
if (A == B && A != C
   || A == C && A != B
   || B == C && A != B) {
  console.log("Yes")
} else {
  console.log("No")
}
