#include using namespace std; int main() { int T; cin >> T; for (int i = 0;i> V >> X >> F1 >> F2 >> Q >> R; int ol; ol = R * (F2 - F1) - (Q + R) * F1; if (ol < 0) { cout << "Zero" << endl; } else if (ol = 0) { cout << "Safe" << endl; } else { cout << "Overflow" << endl; } } }