func_code_string: #include <bits/stdc++.h>   using namespace std;   int ucln(int k, int l) {     int t;     while (l > 0) {       t = l;       l = k % l;       k = t;     }     return (k);   }   int main() {     int x, y, m, n, a, b;     cin >> n >> m >> x >> y >> a >> b;     int u = ucln(a, b);     a /= u;     b /= u;     int na, nb;     if ((n / a) < (m / b)) {       na = a * (n / a);       nb = b * (n / a);     } else {       na = a * (m / b);       nb = b * (m / b);     }     int x1, x2, y1, y2;     x2 = x + na / 2;     x1 = x2 - na;     if (x1 < 0) {       x2 -= x1;       x1 = 0;     }     if (x2 > n) {       x1 -= (x2 - n);       x2 = n;     }     y2 = y + nb / 2;     y1 = y2 - nb;     if (y1 < 0) {       y2 -= y1;       y1 = 0;     }     if (y2 > m) {       y1 -= (y2 - m);       y2 = m;     }     cout << x1 <<     << y1 <<     << x2 <<     << y2;     return 0;   }   