#include <bits/stdc++.h>
using namespace std;
template <typename T>
ostream& operator<<(ostream& out, vector<T>& p) {
  for (auto& el : p) out << el << ' ';
  return out;
}
template <typename T>
istream& operator>>(istream& inp, vector<T>& p) {
  for (auto& el : p) inp >> el;
  return inp;
}
const long long N = 500;
const long long INF = 1e15;
const long long MOD = 1e9 + 7;
void solve() {
  long long n;
  cin >> n;
  cout << max((n + 1) / 2, 1LL) << endl;
}
signed main() {
  ios::sync_with_stdio(0);
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long q = 1;
  cin >> q;
  for (long long i = 0; i < (q); i++) solve();
  return 0;
}
