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 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 as input denoting the total numbers of lines in the input.
Next 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
where is the name of either music or a video.
where is the bitrate of the song.
where and 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.