input_string = input()

good = set('1234567890.+*|QWERTYUIOPLKJHGFDSAZXCVBNM,')

if set(input_string) <= good and '|' in input_string:
    x = input_string.split('|')
    if len(x)== 2:
    	good1 = set('1234567890.')
    	if set(x[0]) <= good1:
    		good2 = set('123456789QWERTYUIOPASDFGHJKLZXCVBNM,+*')
    		if set(x[1]) <= good2:
    			print('The string is fine')


 