#include <bits/stdc++.h>
using namespace std;
int solve(int &n) { return (n / 2 + (n % 2 > 0 ? 1 : 0)); }
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    cout << solve(n) << endl;
  }
  return 0;
}
