#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, n, x, y, z, k, a, i, j, c;
  cin >> t;
  while (t--) {
    cin >> n;
    if (n <= 2) {
      cout << "1" << endl;
      continue;
    }
    if (n & 1) {
      cout << n / 2 + 1 << endl;
    } else
      cout << n / 2 << endl;
  }
}
