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