#include <bits/stdc++.h>
using namespace std;
long long int n, m;
void solve() {
  cin >> n;
  if (((long long int)(n & 1)))
    cout << (n / 2) + 1 << "\n";
  else
    cout << n / 2 << "\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int x;
  cin >> x;
  for (long long int i = 1; i <= x; i++) solve();
  return 0;
}
