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