#include <string>
#include <algorithm>
#include <iostream>

using namespace std;

int main(int argc, char * argv[])
{
    string s = "0000111111";
    do {
        cout << s << endl;
    } while(next_permutation(s.begin(),s.end()));
}
