| 
									
										
										
										
											1999-04-09 14:53:35 +00:00
										 |  |  | #! /usr/bin/env python | 
					
						
							| 
									
										
										
										
											1994-08-01 12:18:36 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # This Python program sorts and reformats the table of keywords in ref2.tex | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-03-17 06:49:51 +00:00
										 |  |  | def raw_input(prompt): | 
					
						
							|  |  |  |     import sys | 
					
						
							|  |  |  |     sys.stdout.write(prompt) | 
					
						
							|  |  |  |     sys.stdout.flush() | 
					
						
							|  |  |  |     return sys.stdin.readline() | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											1994-08-01 12:18:36 +00:00
										 |  |  | l = [] | 
					
						
							|  |  |  | try: | 
					
						
							| 
									
										
										
										
											2004-07-18 06:25:50 +00:00
										 |  |  |     while 1: | 
					
						
							|  |  |  |         l = l + raw_input().split() | 
					
						
							| 
									
										
										
										
											1994-08-01 12:18:36 +00:00
										 |  |  | except EOFError: | 
					
						
							| 
									
										
										
										
											2004-07-18 06:25:50 +00:00
										 |  |  |     pass | 
					
						
							| 
									
										
										
										
											1994-08-01 12:18:36 +00:00
										 |  |  | l.sort() | 
					
						
							|  |  |  | for x in l[:]: | 
					
						
							| 
									
										
										
										
											2004-07-18 06:25:50 +00:00
										 |  |  |     while l.count(x) > 1: l.remove(x) | 
					
						
							| 
									
										
										
										
											1994-08-01 12:18:36 +00:00
										 |  |  | ncols = 5 | 
					
						
							|  |  |  | nrows = (len(l)+ncols-1)/ncols | 
					
						
							|  |  |  | for i in range(nrows): | 
					
						
							| 
									
										
										
										
											2004-07-18 06:25:50 +00:00
										 |  |  |     for j in range(i, len(l), nrows): | 
					
						
							| 
									
										
										
										
											2007-03-21 02:11:39 +00:00
										 |  |  |         print(l[j].ljust(10), end=' ') | 
					
						
							|  |  |  |     print() |