#include <bits/stdc++.h>
using namespace std;
const long long Mod = 1e9 + 7;
void solve() {
  long long n;
  cin >> n;
  if (n % 2 == 0) {
    cout << n / 2 << endl;
  } else
    cout << (n + 1) / 2 << endl;
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  int test;
  cin >> test;
  while (test--) {
    solve();
  }
  return 0;
}
