



"""simple docstring"""
def    A_  (			_lowercase	):







						'''simple docstring'''


						snake_case_ :Tuple						=			[int(_lowercase	) for i in ip_va_address.split("""."""	) if i.isdigit()]
						return len(_lowercase	) == 4 and all(0 <= int(_lowercase	) <= 254 for octet in octets	)


if __name__ == "__main__":
						__a      =				input().strip()
						__a      =				"valid" if is_ip_va_address_valid(ip) else "invalid"
						print(F"""{ip} is a {valid_or_invalid} IP v4 address.""")





"""simple docstring"""
import re
def    A_  (			_lowercase	):







						'''simple docstring'''


						snake_case_ :Optional[int]						=			re.compile(
						    r"""^(?:0|94|\+94|0{2}94)""" r"""7(0|1|2|4|5|6|7|8)""" r"""(-| |)""" r"""\d{7}$"""	)

						return bool(re.search(_lowercase,					_lowercase	)	)


if __name__ == "__main__":
						__a      =				"0094702343221"

						print(is_sri_lankan_phone_number(phone))
