#include <bits/stdc++.h>
using namespace std;
long long x, y, z, n, m, k, l, r, t, mx1, mx2, ans, ar[1000005], ar2[1000005],
    cs[10000005];
string s1, s2, s3;
char c1, c2, c3, c4;
int main() {
  cin >> t;
  while (t--) {
    cin >> x;
    cout << int(ceil(x / 2.0)) << "\n";
  }
}
