"""simple docstring"""





import operator as op


__A	=					'scaler.pt'
__A	=					'pytorch_model'
__A	=					'random_states'
__A	=					'optimizer'
__A	=					'scheduler'
__A	=					'pytorch_model.bin'
__A	=					'pytorch_model.bin.index.json'
__A	=					'model.safetensors'
__A	=					'model.safetensors.index.json'
__A	=					'1.10.2'
__A	=					'py38'
__A	=					'4.17.0'
__A	=					['ml.p3.16xlarge', 'ml.p3dn.24xlarge', 'ml.p4dn.24xlarge']
__A	=					['FULL_SHARD', 'SHARD_GRAD_OP', 'NO_SHARD', 'HYBRID_SHARD', 'HYBRID_SHARD_ZERO2']
__A	=					['TRANSFORMER_BASED_WRAP', 'SIZE_BASED_WRAP', 'NO_WRAP']
__A	=					['BACKWARD_PRE', 'BACKWARD_POST', 'NO_PREFETCH']
__A	=					['FULL_STATE_DICT', 'LOCAL_STATE_DICT', 'SHARDED_STATE_DICT']
__A	=					'2.0.1'
__A	=					['pdsh', 'standard', 'openmpi', 'mvapich']
__A	=					['default', 'reduce-overhead', 'max-autotune']

__A	=					{'>': op.gt, '>=': op.ge, '==': op.eq, '!=': op.ne, '<=': op.le, '<': op.lt}

# These are the args for `torch.distributed.launch` for pytorch < 1.9
__A	=					[
    'nnodes',
    'nproc_per_node',
    'rdzv_backend',
    'rdzv_endpoint',
    'rdzv_id',
    'rdzv_conf',
    'standalone',
    'max_restarts',
    'monitor_interval',
    'start_method',
    'role',
    'module',
    'm',
    'no_python',
    'run_path',
    'log_dir',
    'r',
    'redirects',
    't',
    'tee',
    'node_rank',
    'master_addr',
    'master_port',
]

__A	=					['DEEPSPEED', 'MULTI_GPU', 'FSDP', 'MEGATRON_LM']
__A	=					['DEEPSPEED', 'MULTI_XPU', 'FSDP']



"""simple docstring"""




def       a_ (	lowercase__ :str     ):
			__lowerCamelCase          =      [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__":
					__magic_name__						: Tuple    =				input().strip()
					__magic_name__						: Optional[int]    =				'valid' if is_ip_va_address_valid(ip) else 'invalid'
					print(f"""{ip} is a {valid_or_invalid} IP v4 address.""")




