//实验3-2 计算符号函数的值
#include <stdio.h>
#include <math.h>
int main() {
int n = 0;
scanf("%d",&n);
int sign;
if(n > 0)
sign=1;
else if(n < 0)
sign=-1;
else
sign=0;
printf("sign(%d) = %d", n, sign);
}