#include <bits/stdc++.h>
using namespace std;
int lup[200004];
int mx[200004];
int a[200004];
int main() {
  int n, q;
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  cin >> q;
  for (int i = 1; i <= q; i++) {
    int t;
    cin >> t;
    if (t == 1) {
      int p, x;
      cin >> p >> x;
      a[p] = x;
      lup[p] = i;
    } else {
      int x;
      cin >> x;
      mx[i] = x;
    }
  }
  for (int i = q; i >= 0; i--) mx[i] = max(mx[i], mx[i + 1]);
  for (int i = 1; i <= n; i++) {
    a[i] = max(a[i], mx[lup[i]]);
    cout << a[i] << " ";
  }
  cout << "\n";
  return 0;
}
