def main(): N, M = map(int, input().split()) T = 0 P = 0 for i in range(M): temp_T, temp_P = map(int, input().split()) if abs(temp_P - P) > (temp_T - T): print('No') else: print('Yes') break if __name__ == '__main__': main()