#include <bits/stdc++.h>
using namespace std;
bool comp(int x, int y) { return x > y; }
int main() {
  int t = 1;
  cin >> t;
  int n;
  while (t--) {
    cin >> n;
    if (n == 1 || n == 2) {
      cout << 1 << '\n';
      continue;
    }
    if (n & 1)
      cout << n / 2 + 1 << '\n';
    else
      cout << n / 2 << '\n';
  }
}
