a, b = io.read("*n", "*n") print(a == b and "Yes" or "No")