#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  cout << (int)ceil(n / 2.0);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t = 1, aa, bb, cc, dd;
  cin >> t;
  while (t--) {
    solve();
    cout << endl;
  }
}
