#include <bits/stdc++.h>
using namespace std;
vector<string> st;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int s;
    scanf("%d", &s);
    printf("%d\n", (int)ceil(s * 1.0 / 2));
  }
  return 0;
}
