import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(); int n = sc.nextInt(); int m = sc.nextInt(); ArrayList> graph = new ArrayList<>(); for (int i = 0; i < n; i++) { graph.add(new HashSet<>()); } for (int i = 0; i < m; i++) { int a = sc.nextInt(); int b = sc.nextInt(); graph.get(a).add(b); graph.get(b).add(a); } boolean[] delete = new boolean[n]; for (int i = n - 1; i >= 0; i--) { if (delete[i]) { for (int x : graph.get(i)) { graph.get(x).remove(i); } } else { for (int x : graph.get(i)) { delete[x] = true; } } } StringBuilder sb = new StringBuilder(); boolean isFirst = true; for (int i = n - 1; i >= 0; i--) { if (delete[i]) { sb.append("1"); isFirst = false; } else { if (!isFirst) { sb.append("0"); } } } System.out.println(sb); } } class Scanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); public Scanner() throws Exception { } public int nextInt() throws Exception { return Integer.parseInt(next()); } public long nextLong() throws Exception { return Long.parseLong(next()); } public double nextDouble() throws Exception { return Double.parseDouble(next()); } public String nextLine() throws Exception { return br.readLine(); } public String next() throws Exception { if (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } }