#include <stdio.h>
int main(void){
int S,W;/*S→羊,W→狼*/

	printf("Input sheep number\n");
	scanf("%d",&S);
	
	printf("Input wolf number\n");
	scanf("%d",&W);

if (S<=W){
	printf("unsafe");
}
else
	printf("safe");


return 0;
}