#include using namespace std; using ll=long long; #define rep2(i, a, n) for(int i = (a); i < (n); i++) #define rep(i, n) rep2(i,0,n) void in(){} template void in(Head&& head,Tail&&... tail){cin>>head;in(forward(tail)...);} int main(){ cin.tie(nullptr);ios_base::sync_with_stdio(false); int a,b,c,d,e,f,x,y; in(a,b,c,d,e,f); y = (c - f * a / d) / (b - e * a / d); x = c / a - (b / a) * y; cout<