# 巢狀條件式 (5-5b.py)
num_a = int(input('Number? '))
num_b = int(input('Number? '))

if num_a < 0:
    if num_b < 0:
        print('both negative')