Problem: Dima came to the horse land. There are n horses living in the land. Each horse in the horse land has several enemies (enmity is a symmetric relationship). The horse land isn't very hostile, so the number of enemies of each horse is at most 3.

Right now the horse land is going through an election campaign. So the horses trusted Dima to split them into two parts. At that the horses want the following condition to hold: a horse shouldn't have more than one enemy in its party.

Help Dima split the horses into parties. Note that one of the parties can turn out to be empty.

Input

The first line contains two integers n, m <image> — the number of horses in the horse land and the number of enemy pairs.

Next m lines define the enemy pairs. The i-th line contains integers ai, bi (1 ≤ ai, bi ≤ n; ai ≠ bi), which mean that horse ai is the enemy of horse bi.

Consider the horses indexed in some way from 1 to n. It is guaranteed that each horse has at most three enemies. No pair of enemies occurs more than once in the input.

Output

Print a line, consisting of n characters: the i-th character of the line must equal "0", if the horse number i needs to go to the first party, otherwise this character should equal "1".

If there isn't a way to divide the horses as required, print -1.

Examples

Input

3 3
1 2
3 2
3 1


Output

100


Input

2 1
2 1


Output

00


Input

10 6
1 2
1 3
1 4
2 3
2 4
3 4


Output

0110000000

Solution (in JAVA):

Solution:
import java.io.*;
import java.math.*;
import java.util.*;


public class Main {
    InputReader reader;
    PrintWriter writer;

    Main() {
        reader = new InputReader();
        writer = new PrintWriter(System.out);
    }

    public static void main(String[] args) {
        new Main().run();
    }

    public void run() {
        try {
            int n = reader.nextInt();
            int m = reader.nextInt();
            int[] degree = new int[n];
            int[][] graph = new int[n][3];
            for (int i = 0; i < m; ++ i) {
                int a = reader.nextInt() - 1;
                int b = reader.nextInt() - 1;
                graph[a][degree[a] ++] = b;
                graph[b][degree[b] ++] = a;
            }
            int[] color = new int[n];
            int[] conflict = degree.clone();
            Queue <Integer> queue = new LinkedList <Integer>();
            for (int i = 0; i < n; ++ i) {
                if (conflict[i] > 1) {
                    queue.offer(i);
                }
            }
            boolean[] visit = new boolean[n];
            Arrays.fill(visit, true);
            while (!queue.isEmpty()) {
                int u = queue.poll();
                visit[u] = false;
                if (conflict[u] <= 1) {
                    continue;
                }
                color[u] ^= 1;
                conflict[u] = degree[u] - conflict[u];
                for (int i = 0; i < degree[u]; ++ i) {
                    int v = graph[u][i];
                    conflict[v] += color[u] == color[v] ? 1 : -1;
                    if (conflict[v] > 1 && !visit[v]) {
                        visit[v] = true;
                        queue.offer(v);
                    }
                }
            }
            for (int i = 0; i < n; ++ i) {
                writer.print(color[i]);
            }
            writer.println();
        } catch (IOException ex) {
        }
        writer.close();
    }
}

class InputReader {
    BufferedReader reader;
    StringTokenizer tokenizer;

    InputReader() {
        reader = new BufferedReader(new InputStreamReader(System.in));
        tokenizer = new StringTokenizer("");
    }

    String next() throws IOException {
        while (!tokenizer.hasMoreTokens()) {
            tokenizer = new StringTokenizer(reader.readLine());
        }
        return tokenizer.nextToken();
    }

    Integer nextInt() throws IOException {
        return Integer.parseInt(next());
    }
}