#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int):
    return [NO, YES][not A == B == C and (A == B or B == C or C == A)]


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    print(f'{solve(A, B, C)}')


if __name__ == '__main__':
    main() from typing import * import collections collections import functools functools import itertools itertools import math math import sys sys INF = float('inf') INF float('inf') float 'inf' YES = "Yes" YES "Yes" NO = "No" NO "No" def solve(A: int, B: int, C: int):
    return [NO, YES][not A == B == C and (A == B or B == C or C == A)] solve return [NO, YES][not A == B == C and (A == B or B == C or C == A)] [NO, YES][not A == B == C and (A == B or B == C or C == A)] [NO, YES] NO YES not A == B == C and (A == B or B == C or C == A) not A == B == C A == B == C A == B A B C A == B or B == C or C == A A == B or B == C A == B A B B == C B C C == A C A A: int A B: int B C: int C def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    print(f'{solve(A, B, C)}') main sys.setrecursionlimit(10 ** 6) sys.setrecursionlimit sys setrecursionlimit 10 ** 6 10 6 def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
     iterate_tokens for line in sys.stdin:
            for word in line.split():
                yield word
     line sys.stdin sys stdin for word in line.split():
                yield word
     word line.split() line.split line split yield word word tokens = iterate_tokens() tokens iterate_tokens() iterate_tokens A = int(next(tokens)) A int(next(tokens)) int next(tokens) next tokens B = int(next(tokens)) B int(next(tokens)) int next(tokens) next tokens C = int(next(tokens)) C int(next(tokens)) int next(tokens) next tokens print(f'{solve(A, B, C)}') print f'{solve(A, B, C)}' if __name__ == '__main__':
    main() __name__ == '__main__' __name__ '__main__' main() main def solve(A: int, B: int, C: int):
    return [NO, YES][not A == B == C and (A == B or B == C or C == A)] def solve(A: int, B: int, C: int):
    return [NO, YES][not A == B == C and (A == B or B == C or C == A)] solve NO = "No" "No" NO INF = float('inf') float('inf') INF def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    print(f'{solve(A, B, C)}') def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    print(f'{solve(A, B, C)}') main YES = "Yes" "Yes" YES
#!/usr/bin/env python3
# Generated by https://github.com/kyuridenamida/atcoder-tools
from typing import *
import collections
import functools
import itertools
import math
import sys

INF = float('inf')
YES = "Yes"  # type: str
NO = "No"  # type: str


def solve(A: int, B: int, C: int):
    return [NO, YES][not A == B == C and (A == B or B == C or C == A)]


def main():

    sys.setrecursionlimit(10 ** 6)

    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    A = int(next(tokens))  # type: int
    B = int(next(tokens))  # type: int
    C = int(next(tokens))  # type: int
    print(f'{solve(A, B, C)}')


if __name__ == '__main__':
    main()
