try:
    x = 1/0
except ZeroDivisionError as exc:
    print('1:', exc.__class__.__name__)
except ArithmeticError as exc:
    print('2:', exc.__class__.__name__)
