import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;

void main() {
    auto N = readln.chomp.to!int;
    int E = 0;
    auto used = new bool[][](N, N);
    auto black = new string[](N);
    foreach (i; 0..N) black[i] = "0";
    string[] ans = ["!"];

    while (E < N - 1) {
        int a = uniform(0, N);
        int b = uniform(0, N);
        if (a == b) continue;
        if (used[a][b]) continue;

        black[a] = black[b] = "1";
        writeln("? " ~ black.join(""));
        stdout.flush;
        auto radius = readln.chomp.to!int;
        if (radius) ans ~= ("(" ~ a.to!string ~ "," ~ b.to!string ~ ")");
        E += radius;

        black[a] = black[b] = "0";
        used[a][b] = true;
        used[b][a] = true;
    }

    ans.join(" ").writeln;
    stdout.flush;

}
