ทดสอบบ้าบอ

1, 2, traffy (3), 4, nectec (5), traffy (6), nstda (7), 8, traffy (9), nectec (10), 11, traffy (12), traffy (13), nstda (14), traffy nectec nectec (15), 16, nstda (17), traffy (18), 19, nectec (20), traffy nstda (21), 22, traffy (23), traffy (24), nectec nectec (25), 26, traffy nstda (27), nstda (28), 29, traffy nectec traffy (30), traffy (31), traffy (32), traffy traffy traffy (33), traffy (34), nectec nstda traffy nectec (35), traffy traffy (36), traffy nstda (37), traffy (38), traffy traffy (39), nectec (40), 41, traffy nstda (42), traffy (43), 44, traffy nectec nectec (45), 46, nstda (47), traffy (48), nstda (49), nectec nectec (50), traffy nectec (51), nectec (52), nectec traffy (53), traffy nectec (54), nectec nectec nectec (55), nstda nectec (56), traffy nectec nstda (57), nectec (58), nectec (59), traffy nectec (60), 61, 62, traffy nstda traffy (63), 64, nectec nectec (65), traffy (66), nstda (67), 68, traffy (69), nectec nstda nstda (70), nstda (71), traffy nstda (72), nstda traffy (73), nstda (74), traffy nectec nstda nectec (75), nstda (76), nstda nstda nstda (77), traffy nstda (78), nstda (79), nectec (80), traffy (81), 82, traffy (83), traffy nstda (84), nectec nectec (85), 86, traffy nstda (87), 88, 89, traffy nectec (90), nstda (91), 92, traffy traffy (93), 94, nectec nectec (95), traffy (96), nstda (97), nstda (98), traffy (99), nectec (100)
bb = []
nn = []
aa = []
pp = []
for i in range(1,101):
	bb = 0
	if i%3 ==0:
		if bb:
			bb = str(bb)+" "+"traffy"
		else:
			bb = str(bb)+"traffy"
	if i%5== 0:
		if bb:
			bb = str(bb)+" "+"nectec"
		else:
			bb = str(bb)+"nectec"
	if i%7==0:
		if bb:
			bb = str(bb)+" "+"nstda"
		else:
			bb = str(bb)+"nstda"
	nn = []
	if bb:
		if i >10:
			
			for k in str(i):
				if k=="3":
					if nn:
						nn = str(nn)+' '+"traffy"
					else:
						nn = str(nn)+"traffy"
				if k=="5":
					if nn:
						nn = str(nn)+' '+"nectec"
					else:
						nn = str(nn)+"nectec"
				if k=="7":
					if nn:
						nn = str(nn)+' '+"nstda"
					else:
						nn = str(nn)+"nstda"

	
	if bb and nn:
		aa = '('+str(i)+')'
		print '%s %s %s,' % (bb[1:],nn[2:],aa),

	elif bb:
		aa = '('+str(i)+')'
		if i != 100:
			print '%s %s,' % (bb[1:],aa),
		else:
			print '%s %s' % (bb[1:],aa),

	else:
		pp = []
		for tt in str(i):
			if tt == "3":
				if len(pp)>1:
					pp = str(pp)+" "+"traffy"
				else:
					pp = "traffy"
			if tt == "5":
				if len(pp)>1:
					pp = str(pp)+" "+"nectec"
				else:
					pp = "nectec"
			if tt == "7":
				if len(pp)>1:
					pp = str(pp)+" "+"nstda"
				else:
					pp = "nstda"

		if pp:
			cm = "("+str(i)+")"
			print '%s %s,' % (pp[0:],cm),
		else:
			print '%s,' % i,







		# 		if pp:
		# 			pp = str(pp)+' '+"traffy"
		# 		else:
		# 			pp = str(pp)+"traffy"
		# 	if tt == "5":
		# 		if pp:
		# 			pp = str(pp)+' '+"nectec"
		# 		else:
		# 			pp = str(pp)+"nectec"
		# 	if tt == "7":
		# 		# if pp:
		# 		# 	pp = str(pp)+' '+"nstda"
		# 		# else:
		# 		pp = str(pp)+' '+"nstda"
		# print i,pp,






		# for k in str(i):
		# 	aa = '('+str(i)+')'
		# 	if k=="3":
		# 		if nn:
		# 			nn = str(nn)+' '+"traffy"
		# 		else:
		# 			nn = str(nn)+"traffy"
		# 	if k=="5":
		# 		if nn:
		# 			nn = str(nn)+' '+"nectec"
		# 		else:
		# 			nn = str(nn)+"nectec"
		# 	if k=="7":
		# 		if nn:
		# 			nn = str(nn)+' '+"nstda"
		# 		else:
		# 			nn = str(nn)+"nstda"
		# 	else:
		# 		nn = aa



			# print ",",nn,



	# else:
	# 	if i>3:
	# 		print i,',',
	# 	else:
	# 		print i,',',