Under construction

Still being built. Things may change

Making a Rainbow

Interview

Time limit1sMemory limit1024 MB

Summary
Given a string of letters, decide whether it has enough lowercase, uppercase, or both to spell ROYGBIV, then print yes, YES, YeS, or NO!.
Level

Easy2 of 10

Topics
String, Implementation
Solved
No attempts yet

Problem

A rainbow string is made of R (red), O (orange), Y (yellow), G (green), B (blue), I (indigo), and V (violet), in that order. Letter case is ignored.

Ims gives Chunbae a string of English letters, both uppercase and lowercase. Ims asks whether the letters in that string can form a rainbow string.

Given the length NN of the string Ims gave Chunbae and the string itself, print yes if a rainbow can be written in lowercase letters only, YES if a rainbow can be written in uppercase letters only, YeS if both are possible, and NO! if neither is possible.

Input

The first line contains the length NN of the string Ims gave Chunbae. (1≤N≤100)(1 \le N \le 100)

The second line contains the string Ims gave Chunbae.

Output

Print whether the string Ims gave Chunbae can be used to make a rainbow string.

Examples4

  1. Example 1

    Input
    7
    roygbiv
    
    Expected output
    yes
    
  2. Example 2

    Input
    7
    ROYGBIV
    
    Expected output
    YES
    
  3. Example 3

    Input
    14
    rRoOyYgGbBiIvV
    
    Expected output
    YeS
    
  4. Example 4

    Input
    7
    rainbow
    
    Expected output
    NO!