#include <bits/stdc++.h>
int main() {
  int n1, res;
  int i = 0;
  int n;
  scanf("%d", &n);
  while (i < n) {
    scanf("%d", &n1);
    if (n1 % 2 == 0)
      res = n1 / 2;
    else
      res = (n1 + 1) / 2;
    printf("%d\n", res);
    i++;
  }
}
