#include <bits/stdc++.h>
using namespace std;
void rishabh() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
}
int main() {
  rishabh();
  int t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    cout << (n + 1) / 2 << endl;
  }
}
