#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int Case, n;
  cin >> Case;
  while (Case--) {
    cin >> n;
    cout << (n + 1) / 2 << endl;
    ;
  }
  return 0;
}
