def solve():
    A,B,C = [int(i) for i in input().split()]
    set_nums = set([A,B,C])
    if len(set_nums) == 2:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    solve() def solve():
    A,B,C = [int(i) for i in input().split()]
    set_nums = set([A,B,C])
    if len(set_nums) == 2:
        print("Yes")
    else:
        print("No") solve int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i A,B,C = [int(i) for i in input().split()] A [int(i) for i in input().split()] B C set_nums = set([A,B,C]) set_nums set([A,B,C]) set [A,B,C] A B C if len(set_nums) == 2:
        print("Yes")
    else:
        print("No") len(set_nums) == 2 len(set_nums) len set_nums 2 print("Yes") print "Yes" print("No") print "No" if __name__ == "__main__":
    solve() __name__ == "__main__" __name__ "__main__" solve() solve def solve():
    A,B,C = [int(i) for i in input().split()]
    set_nums = set([A,B,C])
    if len(set_nums) == 2:
        print("Yes")
    else:
        print("No") def solve():
    A,B,C = [int(i) for i in input().split()]
    set_nums = set([A,B,C])
    if len(set_nums) == 2:
        print("Yes")
    else:
        print("No") solve
def solve():
    A,B,C = [int(i) for i in input().split()]
    set_nums = set([A,B,C])
    if len(set_nums) == 2:
        print("Yes")
    else:
        print("No")

if __name__ == "__main__":
    solve()