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.util.ArrayDeque;
import java.util.LinkedList;
import java.util.StringTokenizer;

public class Solution {
    //<editor-fold desc="input parse" defaultstate="collapsed">

    private static StringTokenizer st;
    private static java.io.BufferedReader reader;
    private static java.io.BufferedWriter writer;

    private static long nextLong() {
        return Long.parseLong(st.nextToken());
    }

    private static int nextInt() {
        return Integer.parseInt(st.nextToken());
    }

    private static double nextDouble() {
        return Double.parseDouble(st.nextToken());
    }

    private static short nextShort() {
        return Short.parseShort(st.nextToken());
    }

    private static byte nextByte() {
        return Byte.parseByte(st.nextToken());
    }

    private static void initTokenizer() throws Exception {
        st = new StringTokenizer(reader.readLine());
    }

    //</editor-fold>
    
    static boolean[] color;
    
    static LinkedList<Integer>[] enemies;
    
    static boolean isCorrect (int v) {
	boolean encountered = false;
	
	for (int e : enemies[v]) {
	    if (color[e] == color[v]) {
		if (encountered) return false;
		else encountered = true;
	    }
	}
	
	return true;
    }

    public static void main(String[] args) throws Exception {
	reader = new java.io.BufferedReader(new java.io.InputStreamReader(System.in), 1 << 20);
	writer = new java.io.BufferedWriter(new java.io.OutputStreamWriter(System.out));
	//reader = new java.io.BufferedReader(new java.io.FileReader("input.txt"), 1 << 20);
	//writer = new java.io.BufferedWriter(new java.io.FileWriter("output.txt"));
	
	initTokenizer();
	int n = nextInt();
	int m = nextInt();
	
	enemies = new LinkedList[n];
	
	for (int i = 0; i < n; i++) {
	    enemies[i] = new LinkedList<>();
	}
	
	color = new boolean[n];
	
	for (int i = 0; i < m; i++) {
	    initTokenizer();
	    int a = nextInt() - 1;
	    int b = nextInt() - 1;
	    
	    enemies[a].add(b);
	    enemies[b].add(a);
	}
	
	ArrayDeque<Integer> tocheck = new ArrayDeque<>(n);
	
	for (int i = 0; i < n; i++) {
	    if (!isCorrect(i)) tocheck.add(i);
	}
	
	while (!tocheck.isEmpty()) {
	    int v = tocheck.pollFirst();
	    
	    if (!isCorrect(v)) {
		color[v] = !color[v];
		for (int e : enemies[v]) {
		    if (!isCorrect(e)) tocheck.add(e);
		}
	    }
	}
	
	for (int i = 0; i < n; i++) {
	    writer.write(color[i] ? '0' : '1');
	}
	
	writer.close();
    }
}