#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  scanf("%lld", &n);
  if (n % 2 == 0) {
    cout << n / 2 << "\n";
  } else if (n == 1) {
    cout << 1 << "\n";
  } else {
    cout << (n / 2) + 1 << "\n";
  }
}
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    solve();
  }
  return 0;
}
