import sys
sys.setrecursionlimit(100000)
def find(number, room):
if number not in room:
room[number] = number + 1
#print(number)
#print(room)
return number
empty = find(room[number], room)
room[number] = empty + 1
return empty
#print(empty)
#print(room)
def solution(k, room_number):
answer = []
dic = {}
for i in room_number:
num = find(i, dic)
answer.append(num)
#print(dic)
return answer