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.InputStreamReader;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.Arrays;
import java.util.ArrayList;
import java.io.BufferedReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.io.Reader;
import java.io.Writer;
import java.util.StringTokenizer;
import java.math.BigInteger;
import java.io.InputStream;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
	public static void main(String[] args) {
		InputStream inputStream = System.in;
		OutputStream outputStream = System.out;
		InputReader in = new InputReader(inputStream);
		OutputWriter out = new OutputWriter(outputStream);
		Task solver = new Task();
		solver.solve(1, in, out);
		out.close();
	}
}

class Task {
    public void solve(int testNumber, InputReader in, OutputWriter out) {
        n = in.readInt();
        m = in.readInt();
        g = new ArrayList[n];
        for (int i = 0; i < n; i++)
            g[i] = new ArrayList<Integer>();
        for (int i = 0; i < m; i++){
            int a = in.readInt() - 1, b = in.readInt() - 1;
            g[a].add(b);
            g[b].add(a);
        }
        color = new int[n];
        count = new int[n];
        Arrays.fill(color, 0);
        Arrays.fill(count, 0);
        was = new boolean[n];
        Arrays.fill(was, false);
        for (int i = 0; i < n; i++)
            if (!was[i])
                dfs(i, 0);
        for (int i : color)
            out.print(i);
    }

    void dfs(int v, int clr){
        if (was[v])
            return ;
        was[v] = true;
        color[v] = clr;
        for (int to : g[v]){
            dfs(to, clr ^ 1);
            count[v] += color[to] == clr ? 1 : 0;
        }
        if (count[v] > 1)
            color[v] = clr ^ 1;
    }

    int n, m;
    int[] color, count;
    boolean[] was;
    ArrayList<Integer>[] g;
}

class InputReader {
    public InputReader(InputStream inputStream){
        in = new BufferedReader(new InputStreamReader(inputStream));
    }

    public InputReader(Reader reader){
        in = new BufferedReader(reader);
    }

    public String nextLine(){
        String res = null;
        try {
            res = in.readLine();
        } catch (IOException e) {
            e.printStackTrace();
        }
        return res;
    }

    public String readWord(){
        while (tokenizer == null || !tokenizer.hasMoreTokens())
            tokenizer = new StringTokenizer(nextLine());
        return tokenizer.nextToken();
    }

    public int readInt(){
        return Integer.parseInt(readWord());
    }

    private StringTokenizer tokenizer;
    private BufferedReader in;
}

class OutputWriter {
    public OutputWriter(OutputStream outputStream){
        out = new PrintWriter(new OutputStreamWriter(outputStream));
    }

    public OutputWriter(Writer writer){
        out = new PrintWriter(writer);
    }

    public void print(Object...args){
        int size = args.length;
        for (int i = 0; i < size; i++)
            out.print(args[i]);
    }

    public void close(){
        out.close();
    }

    private PrintWriter out;
}