func_code_string: #include <bits/stdc++.h>   using namespace std;   long long mod = 1000000007;   long long gcd(long long a, long long b) {     if (a == 0) return b;     if (b == 0) return a;     if (a > b) return gcd(b, a % b);     return gcd(a, b % a);   }   int main() {     long long n, x, y;     cin >> n >> x >> y;     long long d = gcd(x, y);     long long xd = x / d;     long long yd = y / d;     long long nok = x / d * y;     for (int i = 0; i < n; i++) {       long long a;       cin >> a;       long long l = 0;       long long r = (a / (x + y) + 2) * nok;       while ((r - l) > 1) {         long long m = (r + l) / 2;         long long hits = m / yd + m / xd;         if (hits >= a)           r = m;         else           l = m;       }       if (((r % yd) == 0) && ((r % xd) == 0))         cout <<  Both n ;       else if (r % yd == 0)         cout <<  Vanya n ;       else         cout <<  Vova n ;     }   }   