#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int64_t> data(n);
  for (int i = 0; i < n; ++i) {
    cin >> data[i];
  }
  int fin = 0;
  for (int i = 0; i < n - 1; ++i) {
    if (data[i] < data[i + 1]) {
      fin = i;
    }
  }
  int64_t g = 1000LL;
  int64_t k = 0LL;
  for (int i = 0; i < n; ++i) {
    if (i > fin) {
      g += (int64_t)data[i] * k;
      k = 0ll;
      cout << "Uru" << endl;
      break;
    } else if (data[i] < data[i + 1]) {
      while (g >= data[i]) {
        g -= data[i];
        k++;
      }
      cout << "Kau" << endl;
    } else if (data[i] > data[i + 1]) {
      g += int64_t(data[i]) * k;
      k = 0LL;
      cout << "Uru" << endl;
    }
    cout << g << endl;
  }
  cout << g;
  return 0;
}
