# Get input from user
mrp = float(input("Enter MRP: "))
discount_percentage = float(input("Enter discount percentage: "))
# Calculate selling price after discount
selling_price = mrp * (100 - discount_percentage) / 100
# Calculate selling price after 40% charge
selling_price_after_charge = selling_price * 0.6
# Output selling price after discount and after charge
print(f"Selling price after discount: {selling_price:.2f}")
print(f"Selling price after 40% charge: {selling_price_after_charge:.2f}")