SIMPACR - Creating simple acronyms

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

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

hide comments
2023-02-15 10:19:22 Simes
Caution: some of the words have trailing spaces, which means you may not ignore them when you should.
© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.