Under construction

Still being built. Things may change

Attendance

Interview

Time limit1sMemory limit1024 MB

Summary
Given a log of called names and Present! replies, print the names of students who never answered Present!, in the order they were called.
Level

Easy2 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

Taking attendance in your class is a tedious task. You call out student names one at a time in alphabetical order. If a student is present, they respond by saying "Present!" before you call the next name.

The task is so boring that you sometimes zone out and fail to keep a proper record of attendance. Write a program that summarizes the absences.

Input

The first line contains a single integer NN (1≤N≤200)(1 \leq N \leq 200), the number of callouts. The next NN lines contain the callouts in the order they were made. Each line is either a student's name or the response Present!.

A name is between 2 and 10 characters long. The first character is an uppercase letter ('A'-'Z'), and the remaining characters are lowercase letters ('a'-'z').

Student names appear in alphabetical order in the input. A Present! line appears only if the previous line was a student's name. In particular, Present! never appears as the first callout.

Output

Output the names of all absent students in the order they were called, one per line. If no students were absent, output No Absences.

Examples4

  1. Example 1

    Input
    6
    Buckley
    Burnadette
    Present!
    Chad
    Present!
    Erin
    
    Expected output
    Buckley
    Erin
    
  2. Example 2

    Input
    3
    Alice
    Bob
    Charlie
    
    Expected output
    Alice
    Bob
    Charlie
    
  3. Example 3

    Input
    8
    Gregory
    Present!
    Maureen
    Present!
    Milton
    Present!
    Xavier
    Present!
    
    Expected output
    No Absences
    
  4. Example 4

    Input
    5
    Gift
    Present!
    Present
    Treat
    Present!
    
    Expected output
    Present