#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long test;
  cin >> test;
  while (test--) {
    long long n;
    cin >> n;
    if (n == 1) {
      cout << "1\n";
    } else if (!(n & 1)) {
      cout << n / 2 << "\n";
    } else {
      cout << ((n - 1) / 2) + 1 << "\n";
    }
  }
  return 0;
}
