|  | @@ -8,6 +8,7 @@ import re
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  PLAYERS = {}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  def calculate_buildings():
 | 
	
		
			
				|  |  |      """Count working in departments"""
 | 
	
		
			
				|  |  |      with open('department.txt', 'r') as file:
 | 
	
	
		
			
				|  | @@ -22,11 +23,10 @@ def calculate_buildings():
 | 
	
		
			
				|  |  |                  if player in PLAYERS:
 | 
	
		
			
				|  |  |                      PLAYERS[player] += int(count)
 | 
	
		
			
				|  |  |                  else:
 | 
	
		
			
				|  |  | -                    PLAYERS[player] = 1
 | 
	
		
			
				|  |  | +                    PLAYERS[player] = 0
 | 
	
		
			
				|  |  |              except Exception as exception:
 | 
	
		
			
				|  |  |                  print('%s %s' % (line, exception))
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |      for player in sorted(PLAYERS, key=PLAYERS.get, reverse=True):
 | 
	
		
			
				|  |  |          print('%3s %s' % (PLAYERS[player], player))
 | 
	
		
			
				|  |  |  
 |