#include <bits/stdc++.h>
using namespace std;

struct Point {
    double x, y;
};

bool kvadrant(int q, const vector<Point>& p) {
    for (double a = 0; a <= 1.0; a += 0.005) {
        for (double b = 0; b <= 1.0 - a; b += 0.005) {
            double c = 1.0 - a - b;
            double px = a * p[0].x + b * p[1].x + c * p[2].x;
            double py = a * p[0].y + b * p[1].y + c * p[2].y;

            if (q == 1 && px > 0 && py > 0) return true;
            if (q == 2 && px < 0 && py > 0) return true;
            if (q == 3 && px < 0 && py < 0) return true;
            if (q == 4 && px > 0 && py < 0) return true;
        }
    }
    return false;
}

int main() {
    vector<Point> points(3);
    for (int i = 0; i < 3; i++) {
        if (!(cin >> points[i].x >> points[i].y)) return 0;
    }

    for (int q = 1; q <= 4; q++) {
        if (kvadrant(q, points)) cout << "+";
        else cout << "-";
    }
    cout << endl;

    return 0;
}