#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int T;cin>>T; for(;T--;) { long V,X,Fo,Fi,Q,R; cin>>V>>X>>Fo>>Fi>>Q>>R; long OX=X; X+=(Fi-Fo)*R; if(X>V) { cout<<"Overflow\n"; continue; } X-=Fo*(Q-R); if(X<0) { cout<<"Zero\n"; continue; } if(X>OX)cout<<"Overflow\n"; else if(X