p=[] for i in' '*int(input()):a,b=input().split();p+=['XV'[int(a)%2=={'T':0,'F':1}[b]]] a=p.count('V') for i in['Peter has %d point%s left to get a 0.'%(a,'s'*(a>1))]+p:print(i)