N = int(input()) #numero de lances
maior_pontuacao = 0
nome_vencedor = ""
for i in range (N):
C = str(input()) #nome da pessoa
V = int(input()) #valor do lance
if V > maior_pontuacao:
maior_pontuacao = V
nome_vencedor = C
print(maior_pontuacao)
print(nome_vencedor)
To embed this project on your website, copy the following code and paste it into your website's HTML: