#include <bits/stdc++.h>
using namespace std;
int mod = 1e9 + 7;
int power(int p, int k) {
  int a = 1;
  while (k) {
    if (k & 1) a = (a * p) % mod;
    p = (p * p) % mod;
    k >>= 1;
  }
  return a;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tc = 1;
  int i, j;
  cin >> tc;
  while (tc--) {
    int n;
    cin >> n;
    if (n == 1 || n == 2)
      cout << 1;
    else if (n == 3)
      cout << 2;
    else if (n % 2 == 0)
      cout << n / 2;
    else if (n % 2 == 1)
      cout << n / 2 + 1;
    cout << "\n";
  }
}
