func_code_string: #include <bits/stdc++.h>   using namespace std;   const int MAXN = 2000005;   int at[MAXN];   long long int n, x, y;   int main() {     cin >> n >> x >> y;     int a;     long long int f, g;     f = y;     g = x;     for (int i = 0; i < x + y; i++) {       if (f < g) {         at[i] = 1;         f += y;       } else if (g < f) {         at[i] = 2;         g += x;       } else {         at[i] = at[++i] = 3;         g += x;         f += y;       }     }     for (int i = 0; i < n; i++) {       cin >> a;       a--;       a %= x + y;       if (at[a] == 2)         cout <<  Vova ;       else if (at[a] == 1)         cout <<  Vanya ;       else         cout <<  Both ;       cout << endl;     }     return 0;   }   