func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     long long int n, x, l;     cin >> n;     vector<int> tab;     for (long long int i = 0; i < n; ++i) {       l = 0;       cin >> x;       if (x <= 7)         tab.push_back(1);       else if (x % 7 == 0)         tab.push_back(x / 7);       else if (x % 6 == 0)         tab.push_back(x / 6);       else if (x % 5 == 0)         tab.push_back(x / 5);       else if (x % 4 == 0)         tab.push_back(x / 4);       else if (x % 3 == 0)         tab.push_back(x / 3);       else if (x % 2 == 0)         tab.push_back(x / 2);       else {         while ((x >= 7) && (x / 7 != 1)) {           x -= 7;           ++l;         }         while ((x >= 6) && (x / 6 != 1)) {           x -= 6;           ++l;         }         while ((x >= 5) && (x / 5 != 1)) {           x -= 5;           ++l;         }         while ((x >= 4) && (x / 4 != 1)) {           x -= 4;           ++l;         }         while ((x >= 3) && (x / 3 != 1)) {           x -= 3;           ++l;         }         while ((x >= 2) && (x / 2 != 1)) {           x -= 2;           ++l;         }         tab.push_back(l);       }     }     for (long long int i = 0; i < tab.size(); ++i) {       cout << tab[i] << endl;     }     return 0;   }   