lines = [line.strip() for line in open('./ssh.txt')]
for line in lines:
	if "(US)" in line:
		with open('US.txt', 'a') as f:
				f.write(line + "\n")
	if "(EG)" in line:
		with open('EG.txt', 'a') as f:
				f.write(line + "\n")
	if "(NL)" in line:
		with open('NL.txt', 'a') as f:
				f.write(line + "\n")
	if "(IT)" in line:
		with open('IT.txt', 'a') as f:
				f.write(line + "\n")
	if "(BH)" in line:
		with open('BH.txt', 'a') as f:
				f.write(line + "\n")
	if "(AR)" in line:
		with open('AR.txt', 'a') as f:
				f.write(line + "\n")
	if "(KR)" in line:
		with open('KR.txt', 'a') as f:
				f.write(line + "\n")
	if "(BE)" in line:
		with open('BE.txt', 'a') as f:
				f.write(line + "\n")
	if "(ES)" in line:
		with open('ES.txt', 'a') as f:
				f.write(line + "\n")
	if "(MX)" in line:
		with open('MX.txt', 'a') as f:
				f.write(line + "\n")
	if "(CN)" in line:
		with open('CN.txt', 'a') as f:
				f.write(line + "\n")
	if "(AU)" in line:
		with open('AU.txt', 'a') as f:
				f.write(line + "\n")
	if "(FR)" in line:
		with open('FR.txt', 'a') as f:
				f.write(line + "\n")
	if "(BR)" in line:
		with open('BR.txt', 'a') as f:
				f.write(line + "\n")
	if "(PK)" in line:
		with open('PK.txt', 'a') as f:
				f.write(line + "\n")
	if "(NO)" in line:
		with open('NO.txt', 'a') as f:
				f.write(line + "\n")
	if "(ID)" in line:
		with open('ID.txt', 'a') as f:
				f.write(line + "\n")
	if "(VN)" in line:
		with open('VN.txt', 'a') as f:
				f.write(line + "\n")

	if "(TW)" in line:
		with open('TW.txt', 'a') as f:
				f.write(line + "\n")
	if "(GB)" in line:
		with open('GB.txt', 'a') as f:
				f.write(line + "\n")
	if "(CA)" in line:
		with open('CA.txt', 'a') as f:
				f.write(line + "\n")
	if "(CY)" in line:
		with open('CY.txt', 'a') as f:
				f.write(line + "\n")
	if "(TH)" in line:
		with open('TH.txt', 'a') as f:
				f.write(line + "\n")
	if "(DE)" in line:
		with open('DE.txt', 'a') as f:
				f.write(line + "\n")

	if "(RU)" in line:
		with open('RU.txt', 'a') as f:
				f.write(line + "\n")
	if "(CZ)" in line:
		with open('CZ.txt', 'a') as f:
				f.write(line + "\n")
	if "(PL)" in line:
		with open('PL.txt', 'a') as f:
				f.write(line + "\n")
	if "(MY)" in line:
		with open('MY.txt', 'a') as f:
				f.write(line + "\n")
	if "(SI)" in line:
		with open('SI.txt', 'a') as f:
				f.write(line + "\n")
	if "(DK)" in line:
		with open('DK.txt', 'a') as f:
				f.write(line + "\n")
