#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #define F first #define S second using namespace std; const long double eps = 0.000000005; const long double pi = 3.1415926535897932; const long long inf = 1e9; vector > g; vector used; vector d; int gcd_ext(int& x, int& y, int a, int b) { if (b == 0) { x = 1; y = 0; return a; } int x1, y1; int g = gcd_ext(x1, y1, b, a%b); x = y1; y = x1 - y1 * a / b; } int main() { ios_base::sync_with_stdio(0); //freopen("input.txt", "r", stdin);freopen("output.txt", "w", stdout); // freopen("slalom.in", "r", stdin);freopen("slalom.out", "w", stdout); int a, b, c; cin >> a >> b >> c; int x, y; int ans = gcd_ext(x, y, a, b); return 0; }