age = int(input("Возраст: ")) day = int(input("День недели (1 пн, 2 вт, ... 7 вс): ")) price = 500 if age < 12 or age >= 65: price = price / 2 if day == 2: price = price * 0.9 print("Цена билета:", price, "руб.")