s=new Scanner(System.in);y=s.nextInt();l=new int[s.nextInt()];y.times{x=it&1;println l.collect{++x&1}.join(' ')}