function main(input) {
  const args = input.split(' ');
  const s = args[0];
  const w = args[1];
  
  if(s > w) {
  	console.log('safe')
  } else {
    console.log('unsafe')
  }
    
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));