func_code_string: #include <bits/stdc++.h>   using namespace std;   bool eq(long double l1, long double l2) { return abs(l1 - l2) < 1e-15; }   int main() {     const string names[] = { Vanya ,  Vova ,  Both };     vector<pair<long double, char>> v;     int n, x, y;     cin >> n >> x >> y;     for (int i = 1; i <= x; i++) {       v.push_back({(long double)i / (long double)x, 0});     }     for (int i = 1; i <= y; i++) {       v.push_back({(long double)i / (long double)y, 1});     }     sort(v.begin(), v.end(),          [](pair<long double, char> a1, pair<long double, char> a2) {            return a1.first < a2.first;          });     for (int i = 0; i < v.size() - 1; i++) {       if (eq(v[i].first, v[i + 1].first)) {         v[i].second = 2;         v[++i].second = 2;       }     }     int a;     for (int i = 0; i < n; i++) {       cin >> a;       if (a > x + y) {         a %= (x + y);         if (a == 0) a = x + y;       }       cout << names[v[a - 1].second] <<   n ;     }   }   