MAC Address verification

5

1 votes
Very-Easy
Problem

Today Professor taught MAC addresses and how it’s written. Now Professor wants to know whether the students could identify the valid MAC address or not. Professor decides to write address on the board and ask any one randomly whether the written address in valid or not. Unfortunately Professor picks the friend sitting next to you who slept throughout the lecture. Since he don’t know the concept help him to identify if the address is valid or invalid. All the six octets in valid MAC address are separated by ‘-‘(without quotes).

Input Format:

Address consisting of 17 characters

Output Format

‘Valid’ if it is valid or ‘Invalid’ if it is invalid(without quotes)

Constraints

Any characters

Time Limit: 5
Memory Limit: 256
Source Limit:
Explanation

Self-Explanatory

Editor Image

?