if __name__ == '__main__':
    l2=[]
    l1=[]
    for i in range(int(input())):
        name= input()
        l1.append(name)
        score =float(input())
        l1.append(score)
        l2.append(l1)
        print(l2)
