xwhile1 = 0
while xwhile1 < 1:
    a = int(input('nè:'))
    if a < 10:
        print(a, 'giỏi lắm a')
        xwhile1 = 2
    else:
        print(a, 'ngu a')
xwhile2 = 0
while xwhile2 < 1:
    b = int(input('nè:'))
    if b < 10:
        print(b, 'giỏi lắm b')
        xwhile2 = 2
    else:
        print(b, 'ngu b')