



def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      while a != 0:
            lowerCamelCase      ,				lowerCamelCase             =		b % a, a
      return b






def      __lowercase(						UpperCAmelCase__ , UpperCAmelCase__			):


      """simple docstring"""



      if gcd(UpperCAmelCase__ , UpperCAmelCase__			) != 1:
            lowerCamelCase             =		F"""mod inverse of {a!r} and {m!r} does not exist"""
            raise ValueError(UpperCAmelCase__			)
      lowerCamelCase      ,				lowerCamelCase      ,				lowerCamelCase             =		1, 0, a
      lowerCamelCase      ,				lowerCamelCase      ,				lowerCamelCase             =		0, 1, m
      while va != 0:
            lowerCamelCase             =		ua // va
            lowerCamelCase      ,				lowerCamelCase      ,				lowerCamelCase      ,				lowerCamelCase      ,				lowerCamelCase      ,				lowerCamelCase             =		(ua - q * va), (ua - q * va), (ua - q * va), va, va, va
      return ua % m




import socket

def      __lowercase(						):


      """simple docstring"""



      lowerCamelCase             =		socket.socket(socket.AF_INET , socket.SOCK_STREAM			)
      lowerCamelCase             =		socket.gethostname()
      lowerCamelCase             =		12312

      sock.connect((host, port)			)
      sock.send(B"Hello server!"			)

      with open("Received_file" , "wb"			) as out_file:
            print("File opened"			)
            print("Receiving data..."			)
            while True:
                  lowerCamelCase             =		sock.recv(1024			)
                  if not data:
                        break
                  out_file.write(UpperCAmelCase__			)

      print("Successfully received the file"			)
      sock.close()
      print("Connection closed"			)


if __name__ == "__main__":
     main()