import core.bitop, std.bitmanip;
import core.checkedint;
import std.algorithm, std.functional, std.meta;
import std.array, std.container;
import std.bigint;
import std.conv;
import std.math, std.numeric;
import std.range, std.range.interfaces;
import std.stdio, std.string;
import std.typecons;

void main()
{
    auto arr = readln.chomp.split.map!(to!int).array;
    
    arr.sort();

    if ((arr[0] == arr[1] && arr[1] != arr[2]) || 
        (arr[0] != arr[1] && arr[1] == arr[2])
       ) {
        writeln("Yes");
        return;
    }
    
    writeln("No");
}