
from __future__ import annotations






def   lowerCamelCase__							(					a		,		a      )      ->   list[str]:
   if nth_term == "":
      return [""]
   _A:  Union[str, Any]					=       int(a      )
   _A:  Optional[int]					=       int(a      )
   _A:  list[str]					=       []
   for temp in range(int(a      )      ):
      series.append(f"""1 / {pow(temp + 1		,		int(a      )      )}""" if series else '''1'''      )
   return series


if __name__ == "__main__":
   import doctest

   doctest.testmod()

   UpperCAmelCase__		:     Optional[Any]     			=      int(input('Enter the last number (nth term) of the P-Series'))
   UpperCAmelCase__		:     int     			=      int(input('Enter the power for  P-Series'))
   print('Formula of P-Series => 1+1/2^p+1/3^p ..... 1/n^p')
   print(p_series(nth_term, power))





def   lowerCamelCase__							(					a      )      ->   bool:
   _A:  Dict					=       [int(a      ) for i in ip_va_address.split('''.'''      ) if i.isdigit()]
   return len(a      ) == 4 and all(0 <= int(a      ) <= 2_54 for octet in octets      )


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



