while(ベッドに自分以外の誰かが){
 if(自分の妹)
  return マズー;
else if (友人の妹)
  return ウマー;
else if (男)
  exit(EXIT_SUCCESS);
}