Nauuo is a girl who loves writing comments.One day, she posted a comment on Codeforces, wondering whether she would get upvotes or downvotes.It's known that there were $$$x$$$ persons who would upvote, $$$y$$$ persons who would downvote, and there were also another $$$z$$$ persons who would vote, but you don't know whether they would upvote or downvote. Note that each of the $$$x+y+z$$$ people would vote exactly one time.There are three different results: if there are more people upvote than downvote, the result will be "+"; if there are more people downvote than upvote, the result will be "-"; otherwise the result will be "0".Because of the $$$z$$$ unknown persons, the result may be uncertain (i.e. there are more than one possible results). More formally, the result is uncertain if and only if there exist two different situations of how the $$$z$$$ persons vote, that the results are different in the two situations.Tell Nauuo the result or report that the result is uncertain.

The only line contains three integers $$$x$$$, $$$y$$$, $$$z$$$ ($$$0\le x,y,z\le100$$$), corresponding to the number of persons who would upvote, downvote or unknown.

If there is only one possible result, print the result : "+", "-" or "0". Otherwise, print "?" to report that the result is uncertain.

NoteIn the first example, Nauuo would definitely get three upvotes and seven downvotes, so the only possible result is "-".In the second example, no matter the person unknown downvotes or upvotes, Nauuo would get more upvotes than downvotes. So the only possible result is "+".In the third example, Nauuo would definitely get one upvote and one downvote, so the only possible result is "0".In the fourth example, if the only one person upvoted, the result would be "+", otherwise, the result would be "-". There are two possible results, so the result is uncertain.

#include<stdio.h>
int main(){
    int a,b,c;
    char ch;
    scanf("%d %d %d",&a,&b,&c);
    if(c>=a-b&&c>=b-a&&c!=0){
            ch='?';
    }else if(a>b){
            ch='+';
    }else if(b>a){
            ch='-';
    }else{
            ch='0';
    }
    printf("%c",ch);
}

#include<stdio.h>
int main()
{
    int x,y,z;
    while(scanf("%d%d%d",&x,&y,&z) !=EOF)
    {

        if(x>y)
        {
            if(x<=y+z)
                printf("?\n");
            else
                printf("+\n");
        }
        else if (y>x)
        {
            if(y<=x+z)
                printf("?\n");
            else
                printf("-\n");
        }
        else
        {
            if(z==0)
                printf("0\n");
            else
                printf("?\n");
        }

    }
    return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if(c!=0){
	if(a>b&&c+b<a)
	printf("+\n");
	else if(a<b&&a+c<b)
	printf("-\n");
	else if(a==b&&a+c<b)
	printf("0\n");
		else
	printf("?\n");}
	else{
		if(a>b)
		printf("+\n");
			else if(a<b)
		printf("-\n");
		else
		printf("0");
	}

	return 0;
}

#include<stdio.h>

int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y && y+z<x)
    {
        printf("+");
    }
    else if(x<y && x+z<y)
    {
        printf("-");
    }
    else if(x==0 && y==0 && z==0)
    {
       printf("0");
    }
    else if(z>=y || z>=x)
    {
        printf("?");

    }
    else if(x+z>y ||y+z>x)
    {
        printf("?");
    }
    else
        printf("0");

    return 0;
}

#include<stdio.h>
int main()
{
    int x, y, z;
    scanf("%d%d%d",&x ,&y ,&z);
    if(x>y){
        if(y+z==x)
            printf("?");
        else if(y+z>x)
            printf("?");
        else //y+z<x
            printf("+");
    }
    else if(x<y){
        if(x+z==y)
            printf("?");
        else if(x+z>y)
            printf("?");
        else //x+z<y
            printf("-");
    }
    else{
        if(x+z==y) //z==0
            printf("0");
        else
            printf("?");
    }
    printf("\n");
	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    int s;
    s=x-y;
    if((s-z)>0&&(s+z)>0)
    {
        printf("+");
    }
    else if((s-z)<0&&(s+z)<0)
    {
        printf("-");
    }
    else
    {
        if(z==0)
        {
            printf("0");
        }
        else
        {
            printf("?");
        }
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(z==0&&x==y)
        printf("0");
    else
    {
        if(x+y>z)
        {
            if(x>y+z)
                printf("+");
            else if(x+z<y)
                printf("-");
            else
                printf("?");
        }
        else
            printf("?");
    }
    return 0;
}

#include<stdio.h>

int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y && y+z<x)
    {
        printf("+");
    }
    else if(x<y && x+z<y)
    {
        printf("-");
    }

    else if(x+z>y || y+z>x)
    {
        printf("?");
    }
    else
        printf("0");

    return 0;
}

#include <stdio.h>

int main() {
	int upvote, downvote, unknown;
	scanf("%d %d %d", &upvote, &downvote, &unknown);
	downvote = 0 - downvote;
	int mean;
	mean = upvote + downvote;
	if (mean == 0 && unknown != 0)
	{
	    printf("?");
	    return 0;
	}
	if (mean < 0)
	{
	    mean = 0 - mean;
	    if ( mean > unknown )
	    {
	        printf("-");
	        return 0;
	    }
	    else
	    {
	        printf("?");
	        return 0;
	    }
	}
	if (mean > 0)
	{
	    if ( mean > unknown )
	    {
	        printf("+");
	        return 0;
	    }
	    else
	    {
	        printf("?");
	        return 0;
	    }
	}
	if (mean == 0 && unknown ==0)
	{
	    printf("0");
	    return 0;
	}
	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,a,b;
    scanf("%d%d%d",&x,&y,&z);

    if(x==y && z==0)
        printf("0");
    else if(x==y && z!=0)
        printf("?");

    else if(x>y)
    {
        a=x-y;
        b=a-z;
        if(b>0)
            printf("+");
        else
            printf("?");
    }
    else if(y>x)
    {
        a=y-x;
        b=a-z;
        if(b>0)
            printf("-");
        else
            printf("?");
    }

    return 0;
}

    #include<stdio.h>
    int main(){
        int u, d, uk;
        scanf("%d %d %d", &u, &d, &uk);
        if(u>d && (u-d)>uk){
            printf("+");
        }
        else if(u>d && (u-d)<=uk){
            printf("?");
        }
        else if(d>u && (d-u)>uk){
            printf("-");
        }
        else if(d>u && (d-u)<=uk){
            printf("?");
        }
        else if(d==u && uk==0){
            printf("0");
        }
        else if(d==u && uk>0){
            printf("?");
        }

    }

#include <stdio.h>

int    main(){
        int x, y, z;
        scanf("%d %d %d", &x, &y , &z);
        if(x - y < 0)
            if(z >= y - x)
                printf("?");
            else
                printf("-");
        else if(x - y > 0)
            if(z >= x - y)
                printf("?");
            else
                printf("+");
        else{
            if(z == 0 && x - y == 0)
                printf("0");
            else
                printf("?");
        }
        return 0;
}

#include<stdio.h>

int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y && y+z<x)
    {
        printf("+");
    }
    else if(x<y && x+z<y)
    {
        printf("-");
    }
    else if(x==0 && y==0 && z==0)
    {
       printf("0");
    }

    else if(x+z>y || y+z>x)
    {
        printf("?");
    }
    else
        printf("0");

    return 0;
}

#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{

if((c+b)>=a)
    printf("?");
else
printf("+");
}
else if(b>a)
{
if((c+a)>=b)
    printf("?");
else
printf("-");
}
else if(a==b)
{
if(a<c||a==c&&c!=0||a>c&&c!=0)
printf("?");
else
printf("0");
}
return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y+z)
    {
        printf("+");
    }
    else if(y>x+z)
    {
        printf("-");
    }
    else if(x==y&&z==0)
    {
        printf("0");
    }
    else
    {
        printf("?");
    }
}

#include <stdio.h>

int main()
{
    int u,d,n,c;
    scanf("%d %d %d",&u,&d,&n);

    c=u-d;

    if(c>0 && n<c )
    {
        printf("+");
    }
    else if(c<0 && n<(-1*c))
    {
        printf("-");
    }
    else if(c==0 && n==0)
    {
        printf("0");
    }
    else
    {
        printf("?");
    }

    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x==y && z)
        printf("?\n");
    else if(x==y && !z)
        printf("0\n");
    else
    {
        if(x-y-z>0)
            printf("+\n");
        else if(abs(x-y)<=z)
            printf("?\n");
        else
            printf("-\n");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(z==0){
        if(x>y){printf("+");}
        else if(y>x){printf("-");}
        else{printf("0");}
    }
    else if(z>0){

        if(z>=x&&z>=y){printf("?");}
        else if(x>y){
            if((y+z)<x){printf("+");}
            else{printf("?");}
            }
        else if(y>x){
            if((x+z)<y){printf("-");}
            else{printf("?");}
            }
        else if(x==y){printf("?");}
        }
}

#include<stdio.h>
main()
{
    long int x,y,z;
    scanf("%ld%ld%ld",&x,&y,&z);
    if(y>x+z)printf("-");
    else if(x>y+z)printf("+");
    else if(x==y&&z==0)printf("0");
    else printf("?");
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,y,z,d;
    char ch;
    scanf("%d %d %d",&x,&y,&z);
    if(z==0&&x==y)
    {
        printf("0");
        exit(0);
    }
    if(x>=y)
    {
        d=x-y;
        ch='+';
    }
    else
    {
        d=y-x;
        ch='-';
    }
    if(d>z)
    {
        printf("%c",ch);
    }
    else
    {
        printf("?");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,a,b;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y && x-y>z){
        printf("+\n");
    }

    else if(x==y && z!=0){
        printf("?\n");
    }

    else if(x>y && x-y<=z){
        printf("?\n");
    }
    else if(x<y && y-x>z){
        printf("-\n");
    }
    else if(x<y && y-x<=z){
        printf("?\n");
    }
    else if(x==y && z==0){
        printf("0\n");
    }
}

#include<stdio.h>
int main(){
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>(y+z)){
        printf("+");
    }
    else if((x+z)<y){
        printf("-");
    }
    else if(x==y && z==0){
        printf("0");
    }
    else{
        printf("?");
    }
    return 0;
}

#include<stdio.h>
int main()
{ int x,y,z;
scanf("%d %d %d",&x,&y,&z);
if(x>y || y>x ){
    if(x>(y+z)) printf("+");
    else if(y>(x+z)) printf ("-");
    else if(x<=(y+z)||y<=(x+z)) printf("?");
}
else if(x==y && z!=0) printf("?");
else if(x==y && z==0) printf("0");
/*if(x>y || y<x) {
        if(x>y && x>z && x>(y+z)) printf("+");
else if(x<y && y>z && y>(x+z)) printf("-");
else if(x<=(y+z) || y<=(x+z)) printf("?");
else if(x==y && x>z) printf("0");
else if(x==0 && y==0 & z==0) printf("0");

}
 else {
        if(x==y && x<z) printf("?");
        else if(x<=(y+z) || y<=(x+z)) printf("?");
else if(z>x && z>y) printf("?");
//else
else printf("?");*/

    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,p,q=0;
    scanf("%d %d %d",&x,&y,&z);
    p=x-y;
    if(p>0)
    {
        q=p;
    }else if(p<0){
    q=-p;
    }
    if(p>0&&z<q)
    {
        printf("+");
    }else if(p<0&&z<q){
    printf("-");
    }else if(z==q&&z!=0){
    printf("?");
    }else if(z==q&&z==0){
    printf("0");
    }else{
    printf("?");}
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if (a>b+c)
    {
        printf("+");
    }
    else if (b>a+c)
    {
        printf("-");
    }
    else if (a==b && c==0)
    {
        printf("0");
    }
    else
    {
        printf("?");
    }
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);

	if(c==0)
	{
		if(a<b)
		{
			printf("-\n");
		}
		if(a>b)
		{
			printf("+\n");
		}
		if(a==b)
		{
			printf("0\n");
		}
	}
	else
	{
		if(a==b)
		{
			printf("?\n");
		}
		if(a>b&&(a-b)<=c)
		{
			printf("?\n");
		}
		if(a>b&&(a-b)>c)
		{
			printf("+\n");
		}
		if(a<b&&(b-a)<=c)
		{
			printf("?\n");
		}
		if(a<b&&(b-a)>c)
		{
			printf("-\n");
		}
	}

	return 0;
}

#include<stdio.h>
int main(){
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y+z){
        printf("+\n");
    }
    else if(y>x+z){
        printf("-\n");
    }
    else if(x==y && z==0){
        printf("0\n");
    }
    else{
        printf("?\n");
    }
    return 0;
}

#include <stdio.h>

int main()
{
    int a,b,c,i,j,k;

    scanf("%d%d%d",&a,&b,&c);

    if(a==b)
    {
        if(c==0)
        {
            printf("0");
        }
        else
        {
            printf("?");
        }
    }
    else if(a>b)
    {
        if(a<=(b+c))
        {
            printf("?");
        }
        else
        {
            printf("+");
        }
    }
    else
    {
        if(b<=(a+c))
        {
            printf("?");
        }
        else
        {
            printf("-");
        }
    }

}

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int x, y, z, d, j;
    char m;

    scanf("%d %d %d", &x, &y, &z);

    if(x>=y)
    {
        d = x-y;
    }
    else if(x<y)
    {
        d = y-x;
    }

    if(d>z || z==0)
    {
        if(x>y)
        {
            printf("+");
        }
        else if(x<y)
        {
            printf("-");
        }
        else if(x==y)
        {
            printf("0");
        }
    }
    else
        printf("?");

}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int x,y,z;
	scanf("%d%d%d",&x,&y,&z);
	if(abs(x-y)<=z&z!=0)
	{
		printf("?");
		return 0;
	}
	if(z==0)
	{
		if(x>y)
			printf("+");
		else if(x<y)
			printf("-");
		else
			printf("0");
	}
	else if(z)
	{
		if(x==y&&x!=0&&y!=0)
			printf("0");
		else if(x==0&&y==0)
			printf("?");
		else if(x>y)
			printf("+");
		else if(x<y)
			printf("-");
	}
	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,d;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y)d=x-y;
    else if(x<y)d=y-x;
    if(x>y&&d>z)printf("+");
    else if(y>x&&d>z)printf("-");
    else if(x==y &&z==0)printf("0");
    else if(d<=z)printf("?");

}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    int s;
    s=x-y;
    if((s-z)>0&&(s+z)>0)
    {
        printf("+");
    }
    else if((s-z)<0&&(s+z)<0)
    {
        printf("-");
    }
    else
    {
        if(z==0)
        {
            printf("0");
        }
        else
        {
            printf("?");
        }
    }
    return 0;
}

#include<stdio.h>

int main(){
	int x,y,z;
	scanf("%d %d %d",&x,&y,&z);
	if(x>y){
		if(z>x-y){
			printf("?\n");
		}else if(z==x-y){
			printf("?\n");
		}else if(z<x-y){
			printf("+\n");
		}
	}
	if(x<y){
		if(z>y-x){
			printf("?\n");
		}else if(z==y-x){
			printf("?\n");
		}else if(z<y-x){
			printf("-\n");
		}
	}
	if(x==y){
		if(z!=0){
			printf("?\n");
		}else{
			if(z%2==0){
				printf("0\n");
			}else{
				printf("?\n");
			}
		}
	}
	return 0;
}

#include<stdio.h>

int main()
{
	int x,y,z;
	scanf("%d%d%d",&x,&y,&z);
	if((x>y) && (x-y)>z)
		printf("+");
	else if((x<y) && (y-x)>z)
	{
		printf("-");
	}
	else if((x==y)&&z==0)
	{
		printf("0");
	}
	else
	{
		printf("?");
	}
    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int x,y,z,i,j,l;
    scanf("%d%d%d",&x,&y,&z);
    l=x-y;
    if((l<0)&&(z==0))
       printf("-\n");
    else if((l==0)&&(z==0))
       printf("0\n");
    else if(l>z)
       printf("+\n");
    else if((y-x)>z)
        printf("-\n");
        else if((x-y)<=z)
        printf("?\n");
    return 0;
}

#include <stdio.h>
int main ()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if (x+z>y && x>y+z)
        printf("+");
    if (y+z>x && y>x+z)
        printf("-");
    if (x==y && z==0)
        printf("0");
    if (x+z>=y && y+z>=x &&z!=0)
        printf("?");
        return 0;
}

#include <stdio.h>
#include <math.h>
int main()
{	int x,y,z;
	scanf("%d %d %d",&x,&y,&z);
	if(x>y){
		if(x-y>z)
		printf("+\n");
		else if(x-y<=z)
		printf("?\n");
		}
	else if(y>x){
		if(y-x>z)
		printf("-\n");
		else if(y-x<=z)
		printf("?\n");
		}
		else if(x==y){
			if(x-y==z)printf("0\n");
			else if(x-y<z)printf("?\n");
			}
    return 0;
 }

#include <stdio.h>
int main()
{
    int x, y, z;
    scanf("%d %d %d", &x, &y, &z);
    if( x - y > 0 && x - y > z)
        printf("+");
    else if(x - y < 0 && y - x > z)
        printf("-");
    else if(z == 0 && x - y == 0)
        printf("0");
    else
        printf("?");
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y)
    {
        int d=x-y;
        if(d>z)
            printf("+");
        else if(d==z&&z==0)
            printf("0");
        else if(d<=z)
            printf("?");
    }
    else
    {
        int d=y-x;
        if(d>z)
            printf("-");
        else if(d==z&&z==0)
            printf("0");
        else
            printf("?");
    }
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);

    if(a>b)
    {
        if(a>b+c) printf("+\n");
        else if(a<=b+c) printf("?\n");

    }
    else if(a<b)
    {
        if(b>a+c) printf("-\n");
        else if(b<=a+c) printf("?\n");

    }
    else if(a==b)
    {  if(a==c & a==0) printf("0\n");
       else if(a<=c) printf("?\n");
       else if(a+c>b) printf("?\n");
       else printf("0\n");
    }

}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    {
        if(a>b&&b+c<a)
    printf("+\n");
    else if(b>a&&a+c<b)
    printf("-\n");
    else if((a==b)>c)
    printf("0");
    else
    printf("?\n");
    }
    return 0;
}

    #include<stdio.h>
    int main()
    {
        int z,y,x,j;
        scanf("%d %d %d",&x,&y,&z);

         if(x>y && x-y>z)
         printf("+\n");
        else if(y>x && y-x>z)
            printf("-\n");
        else if(x==y && z==0)
            printf("0\n");
        else if(x==0 && y==0 && z==0)
             printf("0\n");
        else
        printf("?\n");

    }

#include <stdio.h>

int main() {
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
if(x>y&&x>y+z){
	printf("+\n");
}
else if(y>x&&y>x+z){
	printf("-\n");
}
else if(x==y&&z==0){
	printf("0\n");
}
else{
	printf("?\n");
	}
	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,r,c;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y+z)
    printf("+");
    else if(y>x+z)
    printf("-");
    else if(x==y && z==0)
    printf("0");
    else if(x==y && z>0)
    printf("?");
    else if(x<=y+z)
    printf("?");
    else if(y<=x+z)
    printf("?");
}

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);

 if(a-b>0&&a-b>c)
    printf("+\n");
 else if(b-a>0&&b-a>c)
     printf("-\n");
else if(a-b==0&&c==0)
    printf("0\n");
else
     printf("?\n");
     return 0;
}

#include<stdio.h>
int main()
{
	int a,b,c;
	scanf("%d%d%d",&a,&b,&c);
	if(a>b&&(a-b>c))
	{
		printf("+\n");
	}
	else if(a>b&&(a-b<=c))
	{
		printf("?\n");
	}
	else if(b>a&&(b-a<=c))
	{
		printf("?\n");
	}
	else if(b>a&&(b-a>c))
	{
		printf("-\n");
	}
	else if(a==b&&c>0)
	{
		printf("?\n");
	}
	else if(a==b&&c==0)
	{
		printf("0\n");
	}

}

#include <stdio.h>

int    main(){
        int x, y, z;
        scanf("%d %d %d", &x, &y , &z);
        if(x - y < 0)
            if(z >= y - x)
                printf("?");
            else
                printf("-");
        else if(x - y > 0)
            if(z >= x - y)
                printf("?");
            else
                printf("+");
        else{
            if(z == 0 && x - y == 0)
                printf("0");
            else
                printf("?");
        }
        return 0;
}

#include<stdio.h>
#include<math.h>
#include <stdlib.h>
int main()
{
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  if(x>y && x>z && x>y+z && x!=y+z)
  {
    printf("+");
  }
  else if(y>x && y>z && y>x+z && y!=x+z)
  {
    printf("-");
  }
  else if(x==y && z==0)
  {
    printf("0");
  }
  else
  {
    printf("?");
  }
}

#include<stdio.h>
#include<math.h>
int main()
{
    long long a,b,c,ans1,ans,k,m;
    scanf("%lld%lld%lld",&a,&b,&c);
    ans=(m-a);
    k=a+c;
    m=b+c;
    ans1=(k-b);

    if(c==0&&a==b)printf("0\n");
    else if(a>m)printf("+\n");
    else if(b >k)printf("-\n");
    else printf("?\n");
    return 0;
}

#include <stdio.h>
#define read_int(a) scanf("%d",&a)
#define read_float(a) scanf("%f",&a)
#define read_long(a) scanf("%I64d",&a)

#define print_int(a) printf("%d",a)
#define print_float(a) printf("%f",a)
#define print_long(a) printf("%I64d",&a)

#define min(a,b) a>b?b:a
#define max(a,b) a>b?a:b

#define endl printf("\n")

int main() {

int a,b,c;
read_int(a);
read_int(b);
read_int(c);

int m=a-b;
int n=b-a;

if(m>c)
{
    printf("+");
}
else if(n>c)
{
    printf("-");
}
else if((n==0||m==0) && c==0)
{
    printf("0");
}
else if((n<=0||m<=0) && c!=0 || m==c||n==c)
{
    printf("?");
}
else
{
    printf("0");
}

    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int x,y,z,i,j,l;
    scanf("%d%d%d",&x,&y,&z);
    l=x-y;
    if((l<0)&&(z==0))
       printf("-\n");
    else if((l==0)&&(z==0))
       printf("0\n");
    else if(l>z)
       printf("+\n");
    else if((y-x)>z)
        printf("-\n");
        else if((x-y)<=z)
        printf("?\n");
    return 0;
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,y,z,d;
    char ch;
    scanf("%d %d %d",&x,&y,&z);
    if(z==0&&x==y)
    {
        printf("0");
        exit(0);
    }
    if(x>=y)
    {
        d=x-y;
        ch='+';
    }
    else
    {
        d=y-x;
        ch='-';
    }
    if(d>z)
    {
        printf("%c",ch);
    }
    else
    {
        printf("?");
    }
    return 0;
}

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int x, y, z, d, j;
    char m;

    scanf("%d %d %d", &x, &y, &z);

    if(x>=y)
    {
        d = x-y;
    }
    else if(x<y)
    {
        d = y-x;
    }

    if(d>z || z==0)
    {
        if(x>y)
        {
            printf("+");
        }
        else if(x<y)
        {
            printf("-");
        }
        else if(x==y)
        {
            printf("0");
        }
    }
    else
        printf("?");

}

#include<stdio.h>

int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y && y+z<x)
    {
        printf("+");
    }
    else if(x<y && x+z<y)
    {
        printf("-");
    }
    else if(x==0 && y==0 && z==0)
    {
       printf("0");
    }

    else if(x+z>y || y+z>x)
    {
        printf("?");
    }
    else
        printf("0");

    return 0;
}

#include<stdio.h>
int main()
{
    int z,y,x,j;
    scanf("%d %d %d",&x,&y,&z);

     if(x>y && x-y>z)
     printf("+\n");
    else if(y>x && y-x>z)
        printf("-\n");
    else if(x==y && z==0)
        printf("0\n");
    else if(x==0 && y==0 && z==0)
         printf("0\n");
    else
    printf("?\n");

}

#include<stdio.h>
int main()
{
    int x,y,z,d;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y)d=x-y;
    else if(x<y)d=y-x;
    if(x>y&&d>z)printf("+");
    else if(y>x&&d>z)printf("-");
    else if(x==y &&z==0)printf("0");
    else if(d<=z)printf("?");

}

#include <stdio.h>
int main ()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y+z) {
        printf("+");
        return 0;
    }
    if(x+z<y) {
        printf("-");
        return 0;
    }
    if(x==y && x>0 && z>0)
    {
        printf("?");
        return 0;
    }
    if(x==y && x!=0 && x>z) {
        printf("0");
        return 0;
    }
    if(x==0 && x==y && x==z){
        printf("0");
        return 0;
    }
    if(x==y && x>0 && z>0)
    {
        printf("?");
        return 0;
    }
    else printf("?");
    return 0;

}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y)
    {
        int d=x-y;
        if(d>z)
            printf("+");
        else if(d==z&&z==0)
            printf("0");
        else if(d<=z)
            printf("?");
    }
    else
    {
        int d=y-x;
        if(d>z)
            printf("-");
        else if(d==z&&z==0)
            printf("0");
        else
            printf("?");
    }
}

#include<stdio.h>
int main(){
    int a,b,c;
    char ch;
    scanf("%d %d %d",&a,&b,&c);
    if(c>=a-b&&c>=b-a&&c!=0){
            ch='?';
    }else if(a>b){
            ch='+';
    }else if(b>a){
            ch='-';
    }else{
            ch='0';
    }
    printf("%c",ch);
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(z)
    {
        if(x+z>y&&y+z<x)
            printf("+");
        else if (y+z>x&&x+z<y)
            printf("-");
        else
            printf("?");
    }
    else
    {
        if(x>y)
            printf("+");
        else if(x<y)
            printf("-");
        else
        printf("0");
    }
}

#include<stdio.h>
int main(){
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>(y+z)){
        printf("+");
    }
    else if((x+z)<y){
        printf("-");
    }
    else if(x==y && z==0){
        printf("0");
    }
    else{
        printf("?");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c,d,e;
    scanf("%d %d %d",&a,&b,&c);
    if(a-b>c){
        printf("+\n");
    }
    else if(b-a>c){
        printf("-\n");
    }
    else if(a==b&&c==0){
        printf("0\n");
    }
    else{
        printf("?\n");
    }
    return 0;
}

    #include<stdio.h>
    int main()
    {
        int z,y,x,j;
        scanf("%d %d %d",&x,&y,&z);

         if(x>y && x-y>z)
         printf("+\n");
        else if(y>x && y-x>z)
            printf("-\n");
        else if(x==y && z==0)
            printf("0\n");
        else if(x==0 && y==0 && z==0)
             printf("0\n");
        else
        printf("?\n");

    }

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if (a>b+c)
    {
        printf("+");
    }
    else if (b>a+c)
    {
        printf("-");
    }
    else if (a==b && c==0)
    {
        printf("0");
    }
    else
    {
        printf("?");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x, y, z;
    scanf("%d%d%d",&x,&y,&z);
    if(x==0||y==0||z==0){
    if(x==0 && y>z){
    printf("-");
    }

    else if(y==0 && x>z){
    printf("+");

    }
    else  if(z==0){
    if(y==x && x>0 && y>0){
    printf("0");
    }
    else if(x>y){
    printf("+");
    }
    else if(x<y){
    printf("-");
    }
    else if(x==y){
    printf("0");
    }
    }

  else{
  printf("?");
  }

 }
   else if(x>y||y>x){
   if(y+z<x){
   printf("+");
   }
   else if(x+z<y){
   printf("-");
   }
   else{
  printf("?");
  }

   }
  else{
  printf("?");
  }

    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x==0||y==0||z==0)
        {
            if(x==0&&y>z)
                {
                    printf("-");
                }
            else if(y==0&&x>z)
                {
                printf("+");
                }

            else if(z==0)
                {
                    if(y==x&&x>0&&y>0)
                        {
                            printf("0");
                        }
                    else if(x<y)
                        {
                            printf("-");
                        }
                    else if(x>y)
                        {
                            printf("+");
                        }
                    else if(x==y)
                        {
                            printf("0");
                        }
                }
            else
                {
                    printf("?");
                }

        }

    else if(x>y||y>x)
        {
            if(x>y+z)
                {
                    printf("+");
                }
            else if(y>x+z)
                {
                    printf("-");
                }
            else
                {
                    printf("?");
                }
        }
    else
       {
            printf("?");
       }
    return 0;
}

#include<stdio.h>
int main()
{
    int i,a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(c!=0 )
    {
    if((a+c)>=b && (b+c)>=a)
    {
        printf("?");
    }
    else if((a+c)>b && (b+c)<a)
    {
        printf("+");
    }
    else if((a+c)<b && (b+c)>a)
    {
        printf("-");
    }
    }
    else
    {
        if(a>b)
        {
            printf("+");
        }
        else if(a<b)
        {
            printf("-");
        }
        else printf("0");
    }

}

#include<stdio.h>
int main()
{
    int x,y,z;
    int res;
    scanf("%d",&x);
    scanf("%d",&y);
    scanf("%d",&z);

    if(x>(y+z))
        printf("+");
    else if (y>(x+z))
        printf("-");

    else if(x+y==z)
        {     if((y==0)&&(x>0)&&(z>0))
            printf("?");
            else if((x=y=z==0))
                printf("0");
             else
            printf("?");

        }
                 else if((x==y)&& (z==0))
        printf("%d",z);
     else
        printf("?");

}

#include<stdio.h>
#include<math.h>
int main()
{
    int x,y,z,i,j,l;
    scanf("%d%d%d",&x,&y,&z);
    l=x-y;
    if((l<0)&&(z==0))
       printf("-\n");
    else if((l==0)&&(z==0))
       printf("0\n");
    else if(l>z)
       printf("+\n");
    else if((y-x)>z)
        printf("-\n");
        else if((x-y)<=z)
        printf("?\n");
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,r,c;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y+z)
    printf("+");
    else if(y>x+z)
    printf("-");
    else if(x==y && z==0)
    printf("0");
    else if(x==y && z>0)
    printf("?");
    else if(x<=y+z)
    printf("?");
    else if(y<=x+z)
    printf("?");
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,y,z,d;
    char ch;
    scanf("%d %d %d",&x,&y,&z);
    if(z==0&&x==y)
    {
        printf("0");
        exit(0);
    }
    if(x>=y)
    {
        d=x-y;
        ch='+';
    }
    else
    {
        d=y-x;
        ch='-';
    }
    if(d>z)
    {
        printf("%c",ch);
    }
    else
    {
        printf("?");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x-y>0&&x-y>z)
        printf("+");
    else if(x-y<0&&x-y<z)
        printf("-");
    else if(x==y&&z==0)
        printf("0");
    else
        printf("?");
}

#include<stdio.h>
main()
{
    long int x,y,z;
    scanf("%ld%ld%ld",&x,&y,&z);
    if(y>x)printf("-");
    else if(x>y)printf("+");
    else if(x==0&&y==0)printf("?");
    else if(x==y)printf("0");
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int a,b,c;
	while(scanf("%d %d %d",&a,&b,&c)!=EOF)
	if(a<b&&(b-a)>c)
	{
		printf("-\n");
	}
	else if(a>b&&(a-b)>c)
	{
		printf("+\n");
	}
	else if(a==b&&c==0)
	{
		printf("0\n");
	}
	else if(a==b||a>b&&(a-b)<c||a<b&&(b-a)<c)
	{
		printf("?\n");
	}
	return 0;
 }

#include<stdio.h>
#include<math.h>
#include<stdlib.h>
int main()
{
    int x,y,z,d;
    scanf("%d %d %d",&x,&y,&z);
    d=abs(x-y);
    if((x==0 && y==0))
        printf("?\n");
    //else if(d == z)
        //printf("?\n");
    else if(x==y && z==0)
        printf("0\n");
    else if(x==y)
        printf("?\n");
    else if(d == z)
        printf("?\n");
    else if(x<y && z<(y-x))
        printf("-\n");
    else
        printf("+\n");

    return 0;
}

#include<stdio.h>
int main(void)
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    int sum=0;
    sum=x-y;
    if((sum+z==0 && z>0) || (sum==0 && z>0) || (sum==z && z>0) || (sum<z))
        printf("?");
    else if((sum<0) && (z+sum<0))
        printf("-");
    else if((sum>0) && ((-z)+sum>0))
        printf("+");
    else if(sum==0 && z==0)
        printf("0");
    return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);

    if(x==0 && y==0)
        printf("?\n");
    else if(x==y && z == 0)
        printf("0\n");
    else if(x<y && z<(y-x))
        printf("-\n");
    else
        printf("+\n");

    return 0;
}

#include <stdio.h>

int main()
{
    int a,b,c,i,j,k;

    scanf("%d%d%d",&a,&b,&c);

    if(a<b)
    {
        printf("-\n");
    }
    else if(a>b)
    {
        printf("+\n");
    }
    else if(a==b && c==0)
    {
        printf("0\n");
    }
    else if(a==b && c>0)
    {
        printf("?\n");
    }
}

#include <stdio.h>

int main() {
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
if(x>y&&x>y+z){
	printf("+\n");
}
else if(y>x&&y>x+z){
	printf("-\n");
}
else if(x==y&&x!=0&&y!=0){
	printf("0\n");
}
else{
	printf("?\n");
	}
	return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if(a>b&&c+b<a)
	printf("+\n");
	else if(a<b&&a+c<b)
	printf("-\n");
	else if(a==b&&a+c<b)
	printf("0\n");
		else if(a==b&&a==c&&a==0)
	printf("0\n");
		else
	printf("?\n");

	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(z>x||z>y||x==y+z||y==x+z)
        printf("?");
    else if(x>y)
        printf("+");
    else if(y>x)
        printf("-");
    else if(x==y&&z==0)
    printf("0");
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(z)
    {
        if(x+z==y||x==y+z||x+z==y+z)
            printf("?");
        else if(x>y)
            printf("+");
        else if("-");
        else
            printf("0");
    }
    else
    {
        if(x>y)
            printf("+");
        else if(x<y)
            printf("-");
        else
        printf("0");
    }
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if((x>y)&&(x>z))
    {
        if((y+z)<x){
        printf("+");}
        else{
            printf("?");}
    }
    else if((y>x)&&(y>z))
    {
        if((x+z)<y){
        printf("-");}
         else{
            printf("?");}

    }
    else if((x==y)&&(x>z))
    {
        printf("0");
    }
    else
    {
        printf("?");
    }
}

#include <stdio.h>
#define read_int(a) scanf("%d",&a)
#define read_float(a) scanf("%f",&a)
#define read_long(a) scanf("%I64d",&a)

#define print_int(a) printf("%d",a)
#define print_float(a) printf("%f",a)
#define print_long(a) printf("%I64d",&a)

#define min(a,b) a>b?b:a
#define max(a,b) a>b?a:b

#define endl printf("\n")

int main() {

int a,b,c;
read_int(a);
read_int(b);
read_int(c);

int m=a-b;
int n=b-a;
if((m==0||n==0)&&c!=0)
{
    printf("?");
    return 0;
}

if(m>0)
{
    if(m-c>0)
    {
        printf("+");
    }
    else if(m-c <0)
    {
        printf("?");
    }
    else
    {
        printf("0");
    }
}else if(n>0)
{
    if(n-c>0)
    {
        printf("-");
    }
    else if(n-c <0)
    {
        printf("?");
    }
    else
    {
        printf("0");
    }

}
else
{
    printf("0");
}

    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if((x>y)&&(x>z))
    {
        printf("+");
    }
    else if((y>x)&&(y>z))
    {
        printf("-");
    }
    else if((x==y)&&(x>z))
    {
        printf("0");
    }
    else
    {
        printf("?");
    }
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a>b+c){
        printf("+\n");
    }
    else if(a+c<b){
        printf("-\n");
    }
    else if(a==b&&c==0){
        printf("0\n");
    }
    else if(a==0&&b==0&&c!=0){
        printf("?\n");
    }
    else if(a==b+c){
        printf("?");
    }
    else if(a+c==b){
        printf("?\n");
    }
    return 0;
}

#include<stdio.h>

int main()
{
	int x,y,z;
	scanf("%d",&x,&y,&z);
	if(x-y-z>0)
		printf("+");
	else if(y-x-z>0)
		printf("-");
	else if((x-y)==0 && z > 0)
		printf("?");
	else if((x-y)==0 && z == 0)
		printf("0");
	else
		printf("?");
	return 0;
}

#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{

if((c+b)>=a)
    printf("?");
else
printf("+");
}
else if(b>a)
{
if((c+a)>=b)
    printf("?");
else
printf("-");
}
else if(a==b)
{
if(a<c||a==c||a>c)
printf("?");
else
printf("0");
}
return 0;
}

#include <stdio.h>

int main(){
    int x,y,z;
    scanf("%d %d %d", &x, &y, &z);

    if(x==y && z==0) printf("0\n");
    if(x==0 && y==0 && z != 0) printf("?\n");

    if(x<y){
        x = x+z;
        if(x<y) printf("-\n");
        else printf("?\n");
    }
    else if(x>y){
        y = y+z;
        if(y<x) printf("+\n");
        else printf("?\n");
    }
    return 0;
}

#include<stdio.h>
int main()
{ int x,y,z;
scanf("%d %d %d",&x,&y,&z);
if(x>y && x>z && x>(y+z)) printf("+");
else if(x<y && y>z && y>(x+z)) printf("-");
else if(z>x && z>y) printf("?");
else if(x==y && x>z) printf("0");
else if(x==y && x<=z) printf("0");
else if(x<=(y+z) || y<=(x+z)) printf("?");

else printf("?");
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);

    if(a>b)
    {
        printf("+");
    }
    else if(a<b)
    {
        printf("-");
    }
   else if(a==b)
    {
        printf("0");
    }
    else
    {
        printf("?");
    }

}

#include <stdio.h>
int main ()
{
    int x,y,z;
    scanf ("%d %d %d", &x,&y,&z);
    if (x==y && z==0) {
        printf ("0\n");
    }
    if(z+x>y+z && z+y<x+z) {
        printf ("+\n");
    }
    if(z+y>x+z && z+x<y+z) {
        printf ("-\n");
    }
    if (z+y==x+z) {
        printf ("?\n");
    }

    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z,m,n;
    scanf("%d%d%d",&x,&y,&z);
        if(x>y||x==z&&y==z)
        {
            m=y+z;
            if(x==m||x<m)
            {
                printf("?");

            }
            else if(x>y)
            {
                printf("+");
            }

        }
        else if(y>x||y==z&&x==z)
        {
           n=x+z;
           if(y==n||y<n)
           {
               printf("?");

           }
           else if(y>x)
           {
               printf("-");
           }
        }

        else
        {
            printf("0");
        }
        return 0;
    }

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(z)
    {
        if(x+z==y||x==y+z)
            printf("?");
        else
            if(x>y)
            printf("+");
        else if(x<y)
            printf("-");
        else
            printf("0");
    }
    else
    {
        if(x>y)
            printf("+");
        else if(x<y)
            printf("-");
        else
            printf("0");
    }
}

#include <stdio.h>

int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if (x > y)
        printf("+");
    else if (x < y)
        printf("-");
    else
        printf("?");
    return 0;
}

#include<stdio.h>
int main()
{
    int a, b, c, z;
    scanf("%d %d %d", &a, &b, &c);
    if(c==0)
     {
        if(a>b)
        {
            printf("+");
        }
        else if(b>a)
            printf("-");
        else if(a==b)
        {
            printf("0");
        }

    }
    else
    {
        if(a>b)
        {
            z=a-b-c;
            if(z>0)
            {
                printf("+");
            }
            else if(z==0)
            {
                printf("?");
            }
            else
            {
                printf("-");
            }
        }
        if(a==b)
        {
            printf("?");
        }
         if(a<b)
        {
            z=b-a-c;
            if(z>0)
            {
                printf("-");
            }
            else if(z==0)
            {
                printf("?");
            }
            else
            {
                printf("+");
            }
    }
}
}

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int poz , neg , neutru ;
    scanf("%d" , &poz);
    scanf("%d" , &neg);
    scanf("%d" , &neutru);

    if(poz>neg)
        printf(" + ");
    else if(poz<neg)
        printf(" - ");
    else if(poz==neg)
    {
        if(neutru%2==0)
            printf(" 0 ");
        else if(neutru%2!=0)
            printf(" ? ");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y){
        printf("+\n");
    }
    else if(x<y){
        printf("-\n");
    }
    else if(x==y && x>0 && y>0){
        printf("0\n");
    }
    else if(y==0 && x==0){
        printf("?\n");
    }
}

#include<stdio.h>
#include<string.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a > b && a != b+c){
        printf("+");
    }
    else if(a < b && a > b+c){
        printf("-");
    }
    else if(a==b &&( c < a && c < b)){
        printf("0");
    }
    else {
        printf("?");
    }

}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int a,b,c;
	while(scanf("%d %d %d",&a,&b,&c)!=EOF)
	if(a<b)
	{
		printf("-\n");
	}
	else if(a>b)
	{
		printf("+\n");
	}
	else if(a==b&&c==0)
	{
		printf("0\n");
	}
	else if(a==b)
	{
		printf("?\n");
	}
	return 0;
 }

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y && x>(y+z))
    {
        printf("+");
        return 0;
    }
    else if(x!=0 && y!=0 && x==y)
    {
        printf("0");
        return 0;
    }
    else if (x==(y+z))
    {
        printf("?");
        return 0;
    }
    else if(y==(x+z))
    {
        printf("?");
        return 0;
    }
    else if (x==0 && y==0)
    {
        printf("?");
        return 0;
    }
    else if(x==y && y==z)
    {
        printf("?");
        return 0;
    }

    else printf("-");

}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(c>a&&c>b)
    printf("?");
    else
    {
        if(a+c<b)
        printf("-");
        else if(a+c>b)
        printf("+");
        else
        printf("0");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);

    if(x=0&&y>z){
        printf("-");
    }
    else if(y=0&&x>z){
        printf("+");
    }
    else if(z=0&&x<y){
        printf("-");
    }
    else if(z=0&&x>y){
        printf("+");
    }
    else if(z=0&&x==y){
        printf("0");
    }
    else if(x+z>y){
        printf("+");
    }
    else if(y+z>x){
        printf("-");
    }
    else{
        printf("?");
    }
    return 0;
}

#include <stdio.h>

// CREATED BY AHNAF SHAHREAR

int main ( )

{
         int UPVOTES , DOWNVOTES , UNKNOWN ;
         scanf ( "%d %d %d", &UPVOTES , &DOWNVOTES , &UNKNOWN ) ;

         if ( UPVOTES > DOWNVOTES + UNKNOWN )
         {
                  printf ( "+\n" ) ;
         }
         else if ( DOWNVOTES > UPVOTES + UNKNOWN )
         {
                  printf ( "-\n" ) ;
         }
         else if ( UPVOTES == DOWNVOTES )
         {
                  if ( UNKNOWN >= DOWNVOTES )
                  {
                           printf ( "?\n" ) ;
                  }
                  else if ( UNKNOWN == 0 )
                  {
                           printf ( "0\n" ) ;
                  }
         }
         else if ( UPVOTES == DOWNVOTES + UNKNOWN )
         {
                  printf ( "?\n" ) ;
         }
         else if ( DOWNVOTES == UPVOTES + UNKNOWN )
         {
                  printf ( "?\n" ) ;
         }
         return 0 ;
}

#include<stdio.h>
int main()
{
	int a,b,c,d;
	scanf("%d%d%d",&a,&b,&c);
	if(a==0&&b==0&&c>0)
	{
		printf("?\n");
	}
	else if(a>b)
	{
		printf("+\n");
	}
	else if(b>a)
	{
		printf("-\n");
	}
	else if(a==b)
	{
		printf("0\n");
	}
}

#include<stdio.h>
int main(){
    int a,b,c;
    char ch;
    scanf("%d %d %d",&a,&b,&c);
    if(c>=a-b&&c>=b-a){
        if(c!=0)
            ch='?';
    }else if(a>b){
            ch='+';
    }else if(b>a){
            ch='-';
    }else{
            ch='0';
    }
    printf("%c",ch);
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y&&x>z)
        printf("+");
    else if(y>x&&y>z)
        printf("-");
    else if(z>x&&z>y)
        printf("?");
    else
        printf("0");
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x+y>z)
    {
        if(x>y)
            printf("+");
        else if(x<y)
            printf("-");
        else
            printf("0");
    }
    else
        printf("?");
    return 0;
}

#include<stdio.h>
//#include<string.h>
int main()
{
int x,y,z,i,j;
scanf("%d%d%d",&x,&y,&z);
 if(x==y) {
        if(z>0) printf("?");
        else printf("0");
 }
else if(x+z==y+z) printf("?");
else if(y>x+z) printf("-");
else if(x>y+z) printf("+");

    return 0;
}

#include<stdio.h>
#include<string.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a > b){
        printf("+");
    }
    else if(a < b){
        printf("-");
    }
    else if(a==b &&( c < a && c < b)){
        printf("0");
    }
    else {
        printf("?");
    }

}

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);

 if(a==0||b==0||c==0)
 {
     if((a==0&&b==0))
        printf("?\n");
     else if(a>b)
         printf("+\n");

         else if(a<b)
         printf("-\n");

         else
            printf("0\n");
 }
  else
 {   if(a-b==c||b-a==c)
     printf("?\n");
        else if(a>b)
         printf("+\n");

         else if(a<b)
         printf("-\n");

         else
            printf("0\n");
 }

     return 0;
}

#include<stdio.h>
#include<stdlib.h>

int main()
{
    int x, y, z, d, j;
    char m;

    scanf("%d %d %d", &x, &y, &z);

    if(x>=y)
    {
        d = x-y;
    }
    else if(x<y)
    {
        d = y-x;
    }

    if(d>z || z==0)
    {
        if(x>y)
        {
            printf("+");
        }
        else if(x<y)
        {
            printf("-");
        }
        else if(x==y)
        {
            printf("0");
        }
    }
    else
        printf("?");

    printf("%c", m);
}

#include<stdio.h>
int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    if(c==0)
    {
        if(a>b)
        {
            printf("+");
        }
        else if(b>a)
            printf("-");
        else if(a==b)
        {
            printf("0");
        }

    }
    else
    {
        if(a>(b+c))
        {
            printf("+");
        }
        else if((a<(b+c))&&c>b)
        {
            printf("?");
        }
        else if((a<(b+c))&&b>c)
        {
            printf("-");
        }
        else if((b<(a+c))&&a>c)
        {
            printf("+");
        }
        else if((b<(a+c))&&c>a)
        {
            printf("?");
        }
        else if(b>(a+c))
        {
            printf("-");
        }
        else if(a==(b+c))
        {
            printf("?");
        }
        else if(b==(a+c))
        {
            printf("?");
        }
        else if(a==b&&c>0)
        {
            printf("?");
        }
    }
}

#include<stdio.h>
int main()
{
    int x,y,z,p,q=0;
    scanf("%d %d %d",&x,&y,&z);
    p=x-y;
    if(p>0)
    {
        q=p;
    }else if(p<0){
    q=-p;
    }
    if(p>0&&z<q)
    {
        printf("+");
    }else if(p<0&&z<q){
    printf("-");
    }else if(z==q&&z!=0){
    printf("?");
    }else{
    printf("0");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);

    if(a>b)
    {
        if(a>b+c) printf("+\n");
        else if(a<=b+c) printf("?\n");

    }
    else if(a<b)
    {
        if(b>a+c) printf("-\n");
        else if(b<=a+c) printf("?\n");

    }
    else if(a==b)
    {  if(a==c & a==0) printf("0\n");
       else if(a<=c) printf("?\n");
       else printf("0\n");
    }

}

#include<stdio.h>
#include<math.h>
#include <stdlib.h>
int main()
{
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  if(x>=y && x>=z)
  {
    printf("+");
  }
  else if(y>x && y>=z)
  {
    printf("-");
  }
  else if(x==y && x>z)
  {
    printf("0");
  }
  else if(z>x && z>y)
  {
    printf("?");
  }
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x==0||y==0||z==0)
        {
            if(x==0&&y>z)
                {
                    printf("-");
                }
            else if(y==0&&x>z)
                {
                printf("+");
                }

            else if(z==0)
                {
                    if(y==x&&x>0&&y>0)
                        {
                            printf("0");
                        }
                    else if(x<y)
                        {
                            printf("-");
                        }
                    else if(x>y)
                        {
                            printf("+");
                        }
                    else if(x==y)
                        {
                            printf("0");
                        }
                }
            else
                {
                    printf("?");
                }

        }

    else if(x>y||y>x)
        {
            if(x+z>y)
                {
                    printf("+");
                }
            else if(y+z>x)
                {
                    printf("-");
                }
            else
                {
                    printf("?");
                }
        }
    else
       {
            printf("?");
       }
    return 0;
}

#include<stdio.h>
int main()
{
    int x, y, z;
    scanf("%d%d%d",&x ,&y ,&z);
    if(x<y)
    {
        if((x+z)>y)
            printf("+\n");
        else if((x+z)<y)
            printf("-\n");
        else
            printf("0\n");
    }

    else if(y<x)
    {
        if((y+z)>x)
            printf("-\n");
        else if((y+z)<x)
            printf("+\n");
        else
            printf("0\n");
    }

    else if(x==y && z==0)
        printf("0\n");
    else
        printf("?\n");
	return 0;
}

#include<stdio.h>
main()
{
    long int x,y,z;
    scanf("%ld%ld%ld",&x,&y,&z);
    if(y>x+z)printf("-");
    else if(x>y+z)printf("+");
    else if(x==y)printf("0");
    else printf("?");
}

#include<stdio.h>
#include<string.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a > b && a != b+c){
        printf("+");
    }
    else if(a < b){
        printf("-");
    }
    else if(a==b &&( c < a && c < b)){
        printf("0");
    }
    else {
        printf("?");
    }

}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    int s;
    s=x-y;
    if((s-z)>0&&(s+z)>0)
    {
        printf("+");
    }
    else if((s-z)<0&&(s+z)<0)
    {
        printf("-");
    }
    else
    {
        if((s-z)==0)
        {
            printf("0");
        }
        else
        {
            printf("?");
        }
    }
    return 0;
}

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
  if(c>a||c>b)
  {
       printf("?\n");
  }
  else if(a>b)
    {
        printf("+\n");
    }
   else if(b>a)
   {
       printf("-\n");
   }
  else if(a==0&&b==0)
   {
       printf("?\n");
   }
   else
   {
       printf("0\n");
   }

     return 0;
}

#include<stdio.h>
int main(){
	int x,y,z;
	scanf("%d%d%d",&x,&y,&z);
	if(x==y && z==0)
	printf("0");
	else if((x==y) && (z!=x))
	printf("?");
	else if((x>y) && z==0)
    printf("+");
    else if((x>y) && (x==y+z))
    printf("0");
    else if((x>y) && (x>y+z))
    printf("+");
    else if ((y>x)&& z==0)
    printf("-");
    else if((y>x) && (y==x+z))
    printf("0");
    else if((y>x) && (y>x+z))
    printf("-");
    else if(x>z && y==0)
    printf("+");
    else if(y>z && x==0)
    printf("-");
    else if(x==0 && y==0 && z!=0)
    printf("?");
    else
    printf("?");

}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
        if(a+c>b+c)
        {
            if(a<=b+c)
            {
                printf("?\n");
            }
            else{
            printf("+\n");
            }
        }
         else if(b+c>c+a)
            {
              printf("-\n");
           }
        else if(a+c==b+c)
        {
            if(a=b)
            {
                printf("0\n");
            }
            else{
            printf("?\n");
        }
}
  return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);

    if(a>b) printf("+\n");
    else if(a<b) printf("-\n");
    else if(a==b && a!=0) printf("0\n");
    else if (a==0 && b==0) printf("?\n");
    else printf("?\n");

}

#include<stdio.h>
int main(){
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if((x<=z && y<=z) ||(x-y<=z)){
        printf("?");
    }
    else if(x>y){
        printf("+");
    }
    else if(x<y){
        printf("-");
    }
    else if(x==y){
        printf("0");
    }
}

#include<stdio.h>

int main()
{
	int x,y,z;
	scanf("%d",&x,&y,&z);
	if(x-y-z>0)
		printf("+");
	else if(y-x-z>0)
		printf("-");
	else if((x-y)==0 && z > 0)
		printf("?");
	else if((x-y)==0 && z == 0)
		printf("0");
	else
		printf("?");
	return 0;
}

#include<stdio.h>
#include<string.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a==0 && b==0 && c==0){
        printf("0");

    }
    else if(a > b && a != b+c && a > b+c){
        printf("+");
    }
    else if(a < b && a+c < b){
        printf("-");
    }
    else if(a==b &&( c < a && c < b) && (a+c != b+c) ){
        printf("0");
    }
    else {
        printf("?");
    }

}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x==y&&z>x)
        printf("?");
    if(x>y)
        printf("+");
    if(y>x)
        printf("-");
    if(x==y&&z==0)
    printf("0");
}

#include<stdio.h>
int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    if(c==0)
    {
        if(a>b)
        {
            printf("+");
        }
        else if(b>a)
            printf("-");
        else if(a==b&&c==0)
        {
            printf("0");
        }

    }
    else
    {
        if(a>(b+c))
        {
            printf("+");
        }
        else if(a<(b+c))
        {
            printf("?");
        }
//        else if(b<(a+c))
//        {
//            printf("?");
//        }
        else if(b>(a+c))
        {
            printf("-");
        }
        else if(a==(b+c))
        {
            printf("?");
        }
        else if(b==(a+c))
        {
            printf("?");
        }
        else if(a==b&&c>0)
        {
            printf("?");
        }
    }
}

#include<stdio.h>
main()
{
    long int x,y,z;
    scanf("%ld%ld%ld",&x,&y,&z);
    if(y>x)printf("-");
    else if(x>y)printf("+");
    else if(x==0&&y==0)printf("?");
    else if(x==y)printf("0");
}

#include <stdio.h>
int main ()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if (x>y && x>z && y>z) {printf("+");}
    else if (y>x && y>z && x>z) {printf("-");}
    else if (x==y && x>z) {printf("0");}
    else if(z>x || z>y) {printf("?");}

    return 0;
}

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
   if(a>b)
    {
        printf("+\n");
    }
   else if(b<a)
   {
       printf("-\n");
   }
   else if(a!=0&&b!=0&&a==b)
   {
       printf("0\n");
   }
   else
   {
       printf("?\n");
   }

     return 0;
}

#include<stdio.h>
int main()
{
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    if(c==0)
    {
        if(a>b)
        {
            printf("+");
        }
        else if(b>a)
            printf("-");
        else if(a==b)
        {
            printf("0");
        }

    }
    else
    {
        if(a>(b+c))
        {
            printf("+");
        }
        else if((a<(b+c))&&c>b)
        {
            printf("?");
        }
        else if((a<(b+c))&&b>c)
        {
            printf("-");
        }
        else if((b<(a+c))&&a>c)
        {
            printf("+");
        }
        else if((b<(a+c))&&c>a)
        {
            printf("?");
        }
        else if(b>(a+c))
        {
            printf("-");
        }
        else if(a==(b+c)&&c>b)
        {
            printf("+");
        }
        else if(a==(b+c)&&b>c)
        {
            printf("?");
        }
        else if(b==(a+c))
        {
            printf("?");
        }
        else if(a==b&&c>0)
        {
            printf("?");
        }
    }
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if((x>y)&&(x>z))
    {
        if((y+z)<x){
        printf("+");}
        else{
            printf("?");}
    }
    else if((y>x)&&(y>z))
    {
        if((x+z)<y){
        printf("-");}
         else{
            printf("?");}

    }
    else if((x==y)&&(x>z))
    {
        printf("0");
    }
    else
    {
        printf("?");
    }
}

#include<stdio.h>
int main()
{
    int i,a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if((a+c)>=b && (b+c)>=a)
    {
        printf("?");
    }
    else if((a+c)>b && (b+c)<a)
    {
        printf("+");
    }
    else if((a+c)<b && (b+c)>a)
    {
        printf("-");
    }
    else printf("0");
}

#include<stdio.h>
int main()
{
    int u, d, n, c;

    scanf("%d %d %d", &u, &d, &n);

    c=u-d;

    if(c-n>0)
        printf("+\n");
    if(c+n<0)
        printf("-\n");
    if(c-n<0&&c+n>0)
        printf("?\n");

    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a>b&&b+c<a)
    printf("+");
    else if(b>a&&a+c<b)
    printf("-");
    else if((a==b)&&a>c&&b>c)
    printf("0");
    else
    printf("?");
    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);

    if(x>y)
        printf("+\n");
    if(x<y)
        printf("-\n");
    if(x==y &&z==0)
        printf("0\n");
    if(x==y && z>0)
        printf("?\n");

    return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(z<0)
    {
        printf("0");
        return 0;
    }
    if(x>y)
    {
        x=x+z/2;
        y=y+z/2;
        if(x>y)
        printf("+");
    }
    else if(x<y)
    {
        x=x+z/2;
        y=y+z/2;
        if(x<y)
        printf("-");
    }
    else if (x==y && z%2==0)
    {
        x=x+z/2;
        y=y+z/2;
        if(x==y)
        printf("0");
    }
    else if(x==y && z%2!=0)
    printf("?");
    return 0;
}

#include<stdio.h>
#include<string.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a > b && a != b+c){
        printf("+");
    }
    else if(a < b && a+c < b){
        printf("-");
    }
    else if(a==b &&( c < a && c < b)){
        printf("0");
    }
    else {
        printf("?");
    }

}

#include<stdio.h>
#include<string.h>
int main(){
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a > b && a != b+c){
        printf("+");
    }
    else if(a < b && a+b > c){
        printf("-");
    }
    else if(a==b &&( c < a && c < b)){
        printf("0");
    }
    else {
        printf("?");
    }

}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y && x>(y+z))
    {
        printf("+");
        return 0;
    }
    else if(x!=0 && y!=0 && x==y && y!=z)
    {
        printf("0");
        return 0;
    }
    else if (x==(y+z))
    {
        printf("?");
        return 0;
    }
    else if(y==(x+z))
    {
        printf("?");
        return 0;
    }
    else if (x==0 && y==0)
    {
        printf("?");
        return 0;
    }
    else if(x==y && y==z)
    {
        printf("?");
        return 0;
    }

    else printf("-");

}

#include<stdio.h>
int main()
{
    int x,y,z,a,b;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y && x-y>z){
        printf("+\n");
    }

    else if(x==y && z!=0){
        printf("?\n");
    }
    else if(z>x || z>y){
        printf("?\n");
    }
    else if(x>y && x-y<z){
        printf("?\n");
    }

    else if(x<y && y-x>z){
        printf("-\n");
    }
    else if(x<y && y-x<z){
        printf("?\n");
    }
    else if(x==y && x>0 && y>0 && x>z && y>z){
        printf("0\n");
    }

}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y)
    {
        int d=x-y;
        if(d>z)
            printf("+");
        else if(d==z&&z==0)
            printf("0");
        else
            printf("?");
    }
    else
    {
        int d=y-x;
        if(d>z)
            printf("+");
        else if(d==z&&z==0)
            printf("0");
        else
            printf("?");
    }
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);

    if(x>y)
        printf("+\n");
    else if(x<y)
        printf("-\n");
    else
        printf("0\n");

   if(x==y && (x<z || y<z))
        printf("?\n");

    return 0;
}

#include <stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);

 if(a==0||b==0||c==0)
 {
     if((a==0&&b==0))
        printf("?\n");
     else if(a>b)
         printf("+\n");

         else if(a<b)
         printf("-\n");

         else
            printf("0\n");
 }
  else
  printf("?\n");

     return 0;
}

#include<stdio.h>
#include<math.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    int c=x-y,d=abs(c);
    if(d>=z)
    {
        if(c>0)
        printf("+");
        else if(c<0)
        printf("-");
        else
        printf("0");

    }
    else
    printf("?");
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(a==b&&c==0)
        printf("0\n");
    else if(a==b+c||a+c==b)
        printf("?\n");
    else if(a>b+c)
        printf("+\n");
    else if(a<b+c)
        printf("-\n");
    return 0;
}

#include<stdio.h>
#include<string.h>
int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if(a>b&&a>c&&c+b<a)
	printf("+\n");
	else if(a<b&&b>c&&a+c<b)
	printf("-\n");
	else if(a==b&&a>c)
	printf("0\n");
		else
	printf("?\n");

	return 0;
}

#include<stdio.h>
#include<math.h>
#include <stdlib.h>
int main()
{
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  if(x>y && y>=z )
  {
    printf("+");
  }
  else if(y>x && x>=z )
  {
    printf("-");
  }
  else if((x==y+z || y==x+z)&& x!=y)
  {
    printf("?");
  }
  else if(x==y && x>z)
  {
    printf("0");
  }
  else if(z>x && z>y)
  {
    printf("?");
  }
}

#include<stdio.h>
#include<stdlib.h>

int main()
{
  int x,y,z;
  scanf("%d%d%d",&x,&y,&z);
  if(x > y)
  {
    printf("+");

  }
  else if(y > x)
  {
    printf("-");

  }
  else if(x == y)
  {
    if(z < 2)
     printf("0");
    else
    {
      if(z % 2 == 0)
      printf("0");
      else

      printf("?");
    }

  }

  return 0;

}

#include<stdio.h>
int main()
{
    int x,y,z,a,b;
    scanf("%d%d%d",&x,&y,&z);
    if(x>y && x-y>z){
        printf("+\n");
    }

    else if(x==y && z!=0){
        printf("?\n");
    }

    else if(x>y && x-y<=z){
        printf("?\n");
    }
    else if(x<y && y-x>z){
        printf("-\n");
    }
    else if(x<y && y-x<=z){
        printf("?\n");
    }
    else if(x==y && x>0 && y>0 && x>z && y>z){
        printf("0\n");
    }
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
    int x,y,z,val;
    scanf("%d%d%d",&x,&y,&z);
    val=abs(x-y);
    if(z>val)
    printf("?");
    else if(z<val)
    {
        if(x>y)
        printf("+");
        else
        printf("-");
    }
    else
    printf("0");
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d%d%d",&a,&b,&c);
    if(c>a&&c>b)
    printf("?");
    else
    {
        if(a+c<b)
        printf("-");
        else if(a+c>b)
        printf("+");
        else
        printf("0");
    }
    return 0;
}

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a>c||b>c)
    {
        if(a>b)
            printf("+\n");
        else if(a<b)
            printf("-\n");
        else
            printf("0\n");
    }
    else
        printf("?\n");
}

#include<stdio.h>
#include<stdlib.h>
int main()
{
	int a,b,c;
	while(scanf("%d %d %d",&a,&b,&c)!=EOF)
	{
		if(c==0)
		{
			if(a<b)
			{
				printf("-\n");
			}
			if(a>b)
			{
				printf("+\n");
			}
			if(a==b)
			{
				printf("0\n");
			}
		}
		if(c!=0)
		{
			if(a==b)
			{
				printf("?\n");
			}
			if(a>b&&(a-b)<c)
			{
				printf("?\n");
			}
			else
			{
				printf("+\n");
			}
			if(a<b&&(b-a)<c)
			{
				printf("?\n");
			}
			else
			{
				printf("    -\n");
			}
		}
	}
	return 0;
}

#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y)
    {
      y=y+z;
      if(x>y)
      printf("+");
      else if(x<y)
      printf("-");
      else
      printf("?");
    }
    else if(x<y)
    {
      x=x+z;
      if(x<y)
       printf("-");
       else if(x>y)
      printf("-");
      else
    printf("?");
    }
    else if(x==y && z!=0)
    printf("?");
    else if(z==0)
    printf("0");

    return 0;
}


The employees of the F company have lots of ways to entertain themselves. Today they invited a famous magician who shows a trick with plastic cups and a marble.The point is to trick the spectator's attention. Initially, the spectator stands in front of a line of n plastic cups. Then the magician places a small marble under one cup and shuffles the cups. Then the spectator should guess which cup hides the marble.But the head coder of the F company isn't easy to trick. When he saw the performance, he noticed several important facts:  each cup contains a mark — a number from 1 to n; all marks on the cups are distinct;  the magician shuffles the cups in m operations, each operation looks like that: take a cup marked xi, sitting at position yi in the row of cups (the positions are numbered from left to right, starting from 1) and shift it to the very beginning of the cup row (on the first position). When the head coder came home after work he wanted to re-do the trick. Unfortunately, he didn't remember the starting or the final position of the cups. He only remembered which operations the magician performed. Help the coder: given the operations in the order they were made find at least one initial permutation of the cups that can go through the described operations in the given order. Otherwise, state that such permutation doesn't exist.

The first line contains integers n and m (1 ≤ n, m ≤ 106). Each of the next m lines contains a couple of integers. The i-th line contains integers xi, yi (1 ≤ xi, yi ≤ n) — the description of the i-th operation of the magician. Note that the operations are given in the order in which the magician made them and the coder wants to make them in the same order.

If the described permutation doesn't exist (the programmer remembered wrong operations), print -1. Otherwise, print n distinct integers, each from 1 to n: the i-th number should represent the mark on the cup that initially is in the row in position i. If there are multiple correct answers, you should print the lexicographically minimum one.

#include<stdio.h>
#define N 1050000
#define M 2300000
#define T 1048576
int n,m;
int first[M];
int second[M];
int last[N];
int wei[N];
int pei[N];
int ans[N];
void add(int a[],int x)
{
    x+=T-1;
    while(x)
    {
        a[x]++;
        x>>=1;
    }
}
void del(int a[],int x)
{
    x+=T-1;
    while(x)
    {
        a[x]--;
        x>>=1;
    }
}
int find(int a[],int now,int l,int r,int x)
{
    if(l==r)
        return l;
    int mid=(l+r)/2;
    if(x<=a[now<<1])
        return( find(a,now<<1,l,mid,x) );
    return( find(a,now*2+1,mid+1,r,x-a[now<<1]) );
}
int main()
{
    int i,a,b;
    scanf("%d%d",&n,&m);
    for(i=1;i<=n;i++)
        add(second,i);
    for(i=1;i<=m;i++)
    {
        scanf("%d%d",&a,&b);
        if(first[1]>=b)
            b=wei[find(first,1,1,T,first[1]-b+1)];
        else
            b=find(second,1,1,T,b-first[1]);
        if(ans[b]==a)
        {
            wei[i]=b;
            del(first,last[b]);
            last[b]=i;
            add(first,i);
            continue;
        }
        if(ans[b] || pei[a])
        {
            printf("-1\n");
            return 0;
        }
        ans[b]=a;
        pei[a]=b;
        last[b]=i;
        wei[i]=b;
        del(second,b);
        add(first,i);
    }
    int now=0;
    for(i=1;i<=n;i++)
        if(!ans[i])
        {
            now++;
            while(pei[now])
                now++;
            ans[i]=now;
        }
    for(i=1;i<n;i++)
        printf("%d ",ans[i]);
    printf("%d\n",ans[n]);
    return 0;
}


Artem has an array of n positive integers. Artem decided to play with it. The game consists of n moves. Each move goes like this. Artem chooses some element of the array and removes it. For that, he gets min(a, b) points, where a and b are numbers that were adjacent with the removed number. If the number doesn't have an adjacent number to the left or right, Artem doesn't get any points. After the element is removed, the two parts of the array glue together resulting in the new array that Artem continues playing with. Borya wondered what maximum total number of points Artem can get as he plays this game.

The first line contains a single integer n (1 ≤ n ≤ 5·105) — the number of elements in the array. The next line contains n integers ai (1 ≤ ai ≤ 106) — the values of the array elements.

In a single line print a single integer — the maximum number of points Artem can get.

#include <stdio.h>
#include <stdlib.h>

int compare(const void* a, const void* b)
{
    int* x = (int*) a;
    int* y = (int*) b;
    return *x - *y;
}

unsigned min(const unsigned a, const unsigned b)
{
    return (a < b) ? a : b;
}

int main(int argc, const char *argv[])
{
	unsigned a[500000] = {0};
    unsigned x, n, i, j = 0;
	unsigned long long ans = 0;

	scanf("%u", &n);
	for(i = 0; i < n; i++)
	{
		scanf("%u", &x);
		while(j > 1 && a[j - 2] >= a[j - 1] && x >= a[j - 1])
        {
			ans += min(a[j - 2], x);
			j--;
		}
		a[j++] = x;
	}

    qsort(a, j, sizeof(unsigned), compare);

    if (j > 1)
        for(i = 0; i < j - 2; i++)
            ans += a[i];

	printf("%I64d\n", ans);
    return 0;
}

#include <stdio.h>
#include <stdlib.h>

int compare(const void* a, const void* b)
{
    int* x = (int*) a;
    int* y = (int*) b;
    return x - y;
}

int main(int argc, const char *argv[])
{
	int a[500000], x;
    unsigned i, n, p = 0;
	unsigned long long ans = 0;

	scanf("%u", &n);
	for(i = 0; i < n; i++)
	{
		scanf("%d", &x);
		while(p > 1 && a[p - 2] >= a[p - 1] && x >= a[p - 1])
        {
			ans += (a[p-2] < x) ? a[p-2] : x;
			p--;
		}
		a[p++] = x;
	}

    qsort(a, 500000, sizeof(int), compare);

    for(i = 0; i < p - 2; i++)
        ans += a[i];
	printf("%I64d\n", ans);
    return 0;
}