#include using namespace std; using ll = long long; int main(){ ios::sync_with_stdio(false); cin.tie(0); int n, a, b, c; cin >> n >> a >> b >> c; string str(n, '?'); for(int y = 0; y < n; y++){ for(int x = 0; x < n; x++){ if(c >= 1){ c--; str[x] = '3'; }else if(a >= 1){ a--; str[x] = '1'; }else{ b--; str[x] = '2'; } } cout << str << '\n'; } }