Given marks of students, find how many passed (>= 40).
Difficulty: Easy
Phase: 6 · Mixed Logical Challenges
XP Reward: 10 XP
Topics: Mixed Logical Challenges, Easy
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Validate whether a given string is a valid IPv4 address. Print 'Valid' or 'Invalid'. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 192.168.1.1
Output: Valid
Explanation: Sample execution for input 192.168.1.1