#include <bits/stdc++.h>
using namespace std;
long long read() {
  long long sign = 1, x = 0;
  char s = getchar();
  while (s > '9' || s < '0') {
    if (s == '-') sign = -1;
    s = getchar();
  }
  while (s >= '0' && s <= '9') {
    x = (x << 3) + (x << 1) + s - '0';
    s = getchar();
  }
  return x * sign;
}
void write(long long x) {
  if (x < 0) putchar('-'), x = -x;
  if (x / 10) write(x / 10);
  putchar(x % 10 + '0');
}
int n, k;
int a[(100 + 5)];
int main() {
  int kase;
  cin >> kase;
  while (kase--) {
    cin >> n;
    if (n == 1 || n == 2) {
      cout << 1 << endl;
      continue;
    }
    int ans = (n + 1) / 2;
    cout << ans << endl;
  }
  return 0;
}
