a, b = input().split().map(int) print("YES" if a < b else "NO") print(abs(a - b))