#!/usr/bin/env python2

import sys
import re

num_cases = 0
n_line = sys.stdin.readline()
print n_line, # useful for debugging to see where we have read
assert re.match('^[0-9]*\n$', n_line)
N = int(n_line)

assert 1 <= N <= 60

for _ in range(N):
    animal = sys.stdin.readline()
    assert re.match('^[ZO]$', animal)
    
# ensure no extra input
assert sys.stdin.readline().strip() == ''

# if we get here, all is well; use exit code 42.
sys.exit(42)

