#include<iostream>
using namespace std;


// Declare greetFunc
void greetFunc(int time);


int main()
{
 // Input time from user
 int time;
 cout << "Give a time: ";
 cin >> time;

 // Greet user
 greetFunc(time);

 return 0;
}


// Pre: time between 0 and 2400
// Post: output greeting to screen
void greetFunc(int time)
{
 if(time<1200)
   cout << "Good morning\n";
 else
   cout << "Good afternoon\n";

 return;
}