



import socket





def 							A			(  )       ->				str:







			'''simple docstring'''
			_UpperCAmelCase	 =     socket.socket(socket.AF_INET							,     socket.SOCK_STREAM					)
			_UpperCAmelCase	 =     socket.gethostname()
			_UpperCAmelCase	 =     12_312

			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:
									_UpperCAmelCase	 =     sock.recv(1_024					)
									if not data:
												break
									out_file.write(_UpperCAmelCase					)

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


if __name__ == "__main__":
							main()





import os

# Precomputes a list of the 100 first triangular numbers
UpperCAmelCase__     = [int(0.5 * n * (n + 1)) for n in range(1, 101)]





def 							A			(  )       ->				List[str]:







			'''simple docstring'''
			_UpperCAmelCase	 =     os.path.dirname(os.path.realpath(_UpperCAmelCase					)					)
			_UpperCAmelCase	 =     os.path.join(_UpperCAmelCase							,     'words.txt'					)

			_UpperCAmelCase	 =     ''
			with open(_UpperCAmelCase					) as f:
						_UpperCAmelCase	 =     f.readline()

			_UpperCAmelCase	 =     [word.strip('"'					) for word in words.strip('\r\n'					).split(','					)]
			_UpperCAmelCase	 =     [
			    word
			    for word in [sum(ord(_UpperCAmelCase					) - 64 for x in word					) for word in words]
			    if word in TRIANGULAR_NUMBERS
			]
			return len(_UpperCAmelCase					)


if __name__ == "__main__":
							print(solution())
