#include <bits/stdc++.h>
using namespace std;
long long n, t, ans1, num;
long long a[200005], b[200005];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    if (n & 1)
      cout << (n + 1) / 2 << endl;
    else
      cout << n / 2 << endl;
  }
  return 0;
}
