#include <bits/stdc++.h>
using namespace std;
void Work() {
  int n;
  scanf("%d", &n);
  printf("%d\n", 1 + (n - 1 >> 1));
  return;
}
int main() {
  int T;
  scanf("%d", &T);
  while (T--) Work();
  return 0;
}
