#include <bits/stdc++.h>
using namespace std;
int main() {
  size_t t = 0;
  cin >> t;
  for (size_t i = 0; i < t; ++i) {
    size_t n = 0;
    cin >> n;
    cout << n / 2 + n % 2 << endl;
  }
  return 0;
}
