#include <iostream> 
#include <string> 
using namespace std; 
  
int main() 
{ 
  while (true) 
  { 
    string answer; 
    cout << "Are we there yet [yes/no]? "; 
    getline(cin, answer); 
  
    if (answer == "yes") break; // see 6.6
  } // while 

  cout << "We're home!" << endl;
} // main 
