#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include <map>
#include <unordered_set>
#include <set>
#include <algorithm>
#include <random>

int main() {
  std::ios::sync_with_stdio(false);

  int t;
  std::cin >> t;
  while (t-- > 0) {
    int n;
    std::cin >> n;
    int sum = 0;
    int res = 0;
    int cur = 1;
    while (sum < n) {
      sum += cur;
      cur += 2;
      res++;
    }
    std::cout << res << std::endl;
  }

  return 0;
}
