#include <bits/stdc++.h>
using namespace std;
void solved() {
  int n;
  cin >> n;
  cout << (n + 1) / 2 << "\n";
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  cin >> t;
  while (t--) {
    solved();
  }
  return 0;
}
