#include <bits/stdc++.h>
using namespace std;
const long long INF = 1e18;
const long double PI = 4 * atan((long double)1);
const long long mod = 1e9 + 7;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long tt = 1;
  cin >> tt;
  while ((tt)--) {
    long long n;
    cin >> n;
    if (n == 1) {
      cout << 1 << '\n';
      continue;
    }
    if (n == 3) {
      cout << 2 << '\n';
      continue;
    }
    if (n & 1) {
      cout << n / 2 + 1 << '\n';
    } else {
      cout << n / 2 << '\n';
    }
  }
}
