a=int(input('Prima varsta='))
b=int(input('A doua varsta='))
c=int(input('A treia varsta='))
if (a>=18) and (a<=60):
    print(a)
if (b>=18) and (b<=60):
    print(b)
if (c>=18) and (c<=60):
    print (c)