SIMPACR - Creating simple acronyms

no tags 

An acronym in its simplest form is made up from the first letter of each word in the name of an organisation, ignoring certain words which function as connective words or conjunctions.

The words which are ignored are:

    a, in, is, on, of, and, the, for

Input

The first line contains the number of words making up the full title of the organisation, N. N<100.

After this, the name of the organisation will be presented with one word per line. Words may or may not be capitalised.

Output

The acronym of the organisation, in capital letters.

Example

Input:
5
the
ministry
of
silly
walks Output: MSW

hide comments
Simes: 2023-02-15 10:19:22

Caution: some of the words have trailing spaces, which means you may not ignore them when you should.


Added by:handee
Date:2020-06-12
Time limit:1s
Source limit:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Languages:All