#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 100;
long long visited[100005];
int dx[4] = {1, 0, 0, -1};
int dy[4] = {0, 1, -1, 0};
const int MAX = 2e5 + 10;
void finis() { cout << -1; }
vector<pair<int, int>> v;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t, x, y, n;
  cin >> t;
  while (t--) {
    cin >> n;
    if (n % 2) {
      cout << (n + 1) / 2;
    } else {
      cout << n / 2;
    }
    cout << endl;
  }
}
