#include <bits/stdc++.h>
using namespace std;
void solve_case() {
  int n;
  cin >> n;
  cout << (long long)ceil(n / 2.0) << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    solve_case();
  }
}
