func_code_string: #include <bits/stdc++.h>   using namespace std;   int main() {     int n;     cin >> n;     int c1 = 0;     int c2 = 0;     int a[1000];     for (int i = 1;; i++) {       if (i % 2 == 0) {         a[i] = (i * i) / 2;       } else {         a[i] = (i / 2) * (i / 2) + ceil(i / 2.0) * ceil(i / 2.0);       }       if (a[i] > 200) break;     }     for (int i = 0; i < n; i++) {       string s1, s2;       cin >> s1 >> s2;       if (s2 ==  soft )         c1++;       else         c2++;     }     if (c1 == c2 && c1 == 1)       cout << 2;     else if (c1 == 1 && c2 == 0)       cout << 1;     else if (c2 == 1 && c1 == 0)       cout << 1;     else {       int x = max(c1, c2);       for (int i = 1;; i++) {         if (a[i] < x && x <= a[i + 1]) {           cout << i + 1;           return 0;         }       }     }   }   