#include using namespace std; #define rep(i, j) for(int i=0; i < (int)(j); i++) #define rrep(i, j) for(int i=(j)-1; i >= 0; i--) #define all(v) v.begin(),v.end() // vector template istream& operator >> (istream &is , vector &v) { for(T &a : v) is >> a; return is; } class Solver { public: bool solve() { int N, M; cin >> N >> M; vector need(N); rep(i, M) { int a, b; cin >> a >> b; need[min(a, b)] = true; } reverse(all(need)); string s = ""; for(bool flg : need) { s += flg ? "1" : "0"; if(s == "0") s = ""; } cout << s << endl; return 0; } }; int main() { cin.tie(0); ios::sync_with_stdio(false); Solver s; s.solve(); return 0; }