#include <bits/stdc++.h>
using namespace std;
int n, a[200100], tim[200100], query[200100], mx[200100];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int q;
  cin >> n;
  memset(tim, 0, sizeof(tim));
  for (int i = int(0); i < int(n); ++i) cin >> a[i];
  int t, p, x;
  cin >> q;
  for (int i = 1; i <= q; ++i) {
    cin >> t;
    if (t == 1) {
      cin >> p >> x;
      a[p - 1] = x;
      tim[p - 1] = i;
    } else {
      cin >> x;
      query[i] = x;
    }
  }
  mx[q + 1] = 0;
  for (int i = q; i > 0; --i) mx[i] = max(mx[i + 1], query[i]);
  for (int i = 0; i < n; ++i) a[i] = max(a[i], mx[tim[i] + 1]);
  for (int i = int(0); i < int(n); ++i) cout << a[i] << " ";
  cout << endl;
  return 0;
}
