#include <bits/stdc++.h>
using namespace std;
void kehsihba() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
}
const long long sz = 200005;
long long n, q, k;
long long arr[sz], pos[sz], ans[sz];
void solve() {
  cin >> n;
  for (long long i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  cin >> q;
  for (long long i = 1; i <= q; i++) {
    cin >> k;
    if (k == 1) {
      long long a, b;
      cin >> a >> b;
      arr[a] = b;
      pos[a] = i;
    } else {
      cin >> ans[i];
    }
  }
  for (long long i = q; i >= 1; i--) {
    ans[i] = max(ans[i], ans[i + 1]);
  }
  for (long long i = 1; i <= n; i++) {
    cout << max(arr[i], ans[pos[i] + 1]) << " ";
  }
}
int32_t main() {
  kehsihba();
  long long t = 1;
  for (long long k = 1; k <= t; k++) {
    solve();
  }
}
