score1=input()
score2=input()
if(score1 > score2):
    print('Tencent')
else:
    print('Alibaba')