"""
입출력 예시)
5
Lionel Cosgrove
Alice
Columbus and Tallahassee
Shaun and Ed
Fido
-> 1. Lionel Cosgrove
2. Alice
3. Columbus and Tallahassee
4. Shaun and Ed
5. Fido
"""
## 의사코드 ##
# for i in range(n):
# s = input()
# print(f'{i+1}. {s}')
통과한 코드
n = int(input())
for i in range(n):
s = input()
print(f'{i+1}. {s}')