#MOHD AFSAN AHMAD
#CSB=55
#12180058
#ONE WAY

import os,sys
r,w = os.pipe()

processId = os.fork()

#st = input('enter string\n')
if processId:

	os.close(r)
	f = os.fdopen(w,'w')
	h,m = map(int,input('enter time : ').split(':'))
	#print()
	#print('PID = ',os.getpid(),'started writing ..')
	f.write(str(h))
	#print('PID = ',os.getpid(),'writing completed ..')
	
else:
	os.close(w)
	f = os.fdopen(r)
	l = f.read()
	h = int(l)
	
	if h<12:
		print('Good Morning...')
	elif h<16:
		print('Good Afternoon...')
	elif h<20:
		print('Good Evening...')
	elif h > 24:
		print('Invalid time...')
	else:
		print('Good Night...')
		
		
'''
enter time : 15:56
Good Afternoon...
enter time : 16:00
Good Evening...
enter time : 11:59
Good Morning...
enter time : 23:59
Good Night...
'''

553bce1e8b265d9909dbc82f534b14bc7156159a
<mask token>

<mask token>
if processId:
    os.close(r)
    f = os.fdopen(w, 'w')
    h, m = map(int, input('enter time : ').split(':'))
    f.write(str(h))
else:
    os.close(w)
    f = os.fdopen(r)
    l = f.read()
    h = int(l)
    if h < 12:
        print('Good Morning...')
    elif h < 16:
        print('Good Afternoon...')
    elif h < 20:
        print('Good Evening...')
    elif h > 24:
        print('Invalid time...')
    else:
        print('Good Night...')
<mask token>

<mask token>
r, w = os.pipe()
processId = os.fork()
if processId:
    os.close(r)
    f = os.fdopen(w, 'w')
    h, m = map(int, input('enter time : ').split(':'))
    f.write(str(h))
else:
    os.close(w)
    f = os.fdopen(r)
    l = f.read()
    h = int(l)
    if h < 12:
        print('Good Morning...')
    elif h < 16:
        print('Good Afternoon...')
    elif h < 20:
        print('Good Evening...')
    elif h > 24:
        print('Invalid time...')
    else:
        print('Good Night...')
<mask token>

import os, sys
r, w = os.pipe()
processId = os.fork()
if processId:
    os.close(r)
    f = os.fdopen(w, 'w')
    h, m = map(int, input('enter time : ').split(':'))
    f.write(str(h))
else:
    os.close(w)
    f = os.fdopen(r)
    l = f.read()
    h = int(l)
    if h < 12:
        print('Good Morning...')
    elif h < 16:
        print('Good Afternoon...')
    elif h < 20:
        print('Good Evening...')
    elif h > 24:
        print('Invalid time...')
    else:
        print('Good Night...')
<mask token>

#MOHD AFSAN AHMAD
#CSB=55
#12180058
#ONE WAY

import os,sys
r,w = os.pipe()

processId = os.fork()

#st = input('enter string\n')
if processId:

	os.close(r)
	f = os.fdopen(w,'w')
	h,m = map(int,input('enter time : ').split(':'))
	#print()
	#print('PID = ',os.getpid(),'started writing ..')
	f.write(str(h))
	#print('PID = ',os.getpid(),'writing completed ..')
	
else:
	os.close(w)
	f = os.fdopen(r)
	l = f.read()
	h = int(l)
	
	if h<12:
		print('Good Morning...')
	elif h<16:
		print('Good Afternoon...')
	elif h<20:
		print('Good Evening...')
	elif h > 24:
		print('Invalid time...')
	else:
		print('Good Night...')
		
		
'''
enter time : 15:56
Good Afternoon...
enter time : 16:00
Good Evening...
enter time : 11:59
Good Morning...
enter time : 23:59
Good Night...
'''
