func_code_string: #include <bits/stdc++.h>   using namespace std;   vector<int> SEC;   int main() {     long long n, x, y;     cin >> n >> x >> y;     long long tedX = 0, tedY = 0;     while (tedX + tedY < x + y) {       if ((tedX + 1) * y > (tedY + 1) * x) {         SEC.push_back(2);         tedY++;       } else if ((tedX + 1) * y < (tedY + 1) * x) {         SEC.push_back(1);         tedX++;       } else {         SEC.push_back(-1);         SEC.push_back(-1);         tedX++;         tedY++;       }     }     for (int i = 0; i < n; i++) {       long long tmp;       cin >> tmp;       long long ans = SEC[(tmp - 1) % (x + y)];       if (ans == 1) {         cout <<  Vanya  << endl;       } else if (ans == 2) {         cout <<  Vova  << endl;       } else         cout <<  Both  << endl;     }   }   