A new website to host video and music is built up by the company X. The engineers at X are facing a major issue in identifying whether the data they receive in one of their API is of video or music.
Now, you will be given N lines of data. Each line of data consists a list of strings. Each string either represents an integer or a name. For each line of data, you need to check whether that data corresponds to a music or a video.
You need to follow the following rules to detect the data and store it:
For each line of data, if it satisfies the constraints of a music then print M, if it satisfies constraints of a video print V, or else print N which means that the data has to be ignored.
Input Format
The first line contains an integer N as input denoting the total numbers of lines in the input.
Next N lines contains either two strings or three strings separated by space.
Output Format
For each data, you need to print either of the three characters N, V or M.
Constraints
1≤N≤105
1≤word≤15 where word is the name of either music or a video.
1≤bitrate≤1032 where bitrate is the bitrate of the song.
1≤resx,resy≤1032 where resx and resy denote the width and height of video in pixels.
In the given sample. the first one does not correspond to either a video or a music as it contains two integers which do not match the format of any of the two types of data.
The second data corresponds to a video as it contains one name and two integers.
The third data corresponds to a music as it contains one name and one integer.