#bg1, bg2 = input("Enter the two blood groups:").split()
#if bg1 == bg2:
#    print("The two blood groups match.")
#else:
#    print("It is a mismatch.")
#

bg1, bg2 = input("Enter the two blood groups:").split()
if bg1 == bg2:
    print("The two blood groups match.")
else:
    print("It is a mismatch.")
