import numpy as np N = int(input()) M = int(input()) S = [int(input(),2) for m in range(M)] ambient = (2**N)-1 power = 1 for n in range(N): cap = ambient cup = power for s in S: if( ( s >> n ) & 1 == 1 ): cap &= s else: cup |= s if( ( ( ~cup ) & cap ) != 0 ): print( "No" ) exit(0) power <<= 1 print( "Yes" )