#include <bits/stdc++.h>
using namespace std;
void solve() {
  int t;
  scanf("%d", &t);
  while (t--) {
    long long n;
    cin >> n;
    if (n % 2) {
      cout << n / 2 + 1 << endl;
    } else
      cout << n / 2 << endl;
  }
  return;
}
int main(int argc, const char* argv[]) {
  solve();
  return 0;
}
