#include <bits/stdc++.h>
using namespace std;
const int MAXN = 2e5 + 10;
const int mod = 998244353;
const int inf = 1e9 + 7;
const int eps = 1e-9;
int n, m, xx, yy, i, j, op;
int a[MAXN], b[MAXN], c[MAXN];
int main() {
  scanf("%d", &n);
  for (i = 1; i <= n; i++) scanf("%d", &a[i]);
  scanf("%d", &m);
  for (i = 1; i <= m; i++) {
    scanf("%d", &op);
    if (op == 1) {
      scanf("%d%d", &xx, &yy);
      b[xx] = i;
      a[xx] = yy;
    } else {
      scanf("%d", &xx);
      c[i] = xx;
    }
  }
  for (i = m - 1; i >= 0; i--) c[i] = max(c[i + 1], c[i]);
  for (i = 1; i <= n; i++) printf("%d ", max(c[b[i]], a[i]));
  putchar(10);
}
