// Greet user based on the time of day
#include<iostream>
using namespace std;

int main()
{
  // initialize variables
  string name;
  int time;

  // get user's name
  cout << "What is your name? ";
  cin >> name;

  // get time (in army time)
  cout << "What time is it? ";
  cin >> time;

  // divide day after noon (if) or before noon (else)
  if (time>1200)
     cout << "Good afternoon, " << name << endl;
  else
     cout << "Good morning, " << name << endl;

  return 0;
}