params = input() a = params[0] b = params[1] if (a > (b * 2)) or (b > (a * 2)): print('No') else: print('Yes')