Medium
Valid Colour Code
A colour code is
# followed by exactly 3 or 6 hex digits (0–9, a–f, any case). Print Valid or Invalid for each code on the line.Input
One line of codes.
Output
Lines.
Sample 1
Input
#fff #1A2B3C #12g #1234
Output
Valid Valid Invalid Invalid
Sample 2
Input
#000000
Output
Valid
Output appears here