def main():
    a, p, q = input().split()


    if p == q:
        print("No")
    else:
        print("Yes")
    return 0


main()