#include <bits/stdc++.h>
using namespace std;
int main() {
  long int t, print;
  double n, up;
  for (cin >> t; t--;) {
    up = 0;
    print = 0;
    cin >> n;
    up = ceil(n / 2);
    print = up;
    cout << print << endl;
    ;
  }
  return 0;
}
