function main(arg) {
  var [S, W] = arg[0].split(' ');
  if(S > W) {
  	console.log('safe')
  } else {
	console.log('unsafe')
  }
}

main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split('\n'));
