#include <bits/stdc++.h>
using namespace std;
const double Pi = acos(-1.0);
const int MAXN = 1e6 + 5;
int n, m, t;
int v[MAXN];
char s[MAXN];
int main() {
  cin >> t;
  while (t--) {
    cin >> n;
    cout << (n + 1) / 2 << endl;
  }
}
