// This program illustrates a problem that can occur if
// cin is used to read character data into a string object.
#include <iostream>
#include <string>
using namespace std;

int main ()
{
    string name;
    string city;
    
    cout << "Please enter your name: ";
    cin  >> name;
    cout << "Enter the city you live in: ";
    cin  >> city;
    
    cout << "Hello, " << name << endl;
    cout << "You live in " << city << endl;
    return 0;
}
