# اطلب من الشخص ادخال المبلغ 
user_num = float(input("ادخل المبلغ:"))

# اطلب من الشخص ادخال العملة الاصلية 
currency1 = input("ادخل العملةالاصلية (SAR/USD/AED):").upper().strip()

# اطلب من الشخص ادخال العملة المستهدفة 
currency2 = input("ادخل العملةالمستهدفة (SAR/USD/AED):").upper().strip()

# الناتج 
# اذا كان العملة الصلية (SAR) 
if currency1 == "SAR" and currency2 == "USD":
    output = user_num / 3.75
    print(f"{user_num} {currency1} = {output} {currency2}")

elif currency1 == "SAR" and currency2 == "AED":
    output = user_num / 1.02
    print(f"{user_num} {currency1} = {output} {currency2}")

# اذا كان العملة الصلية (USD) 
elif currency1 == "USD" and currency2 == "SAR":
    output = user_num * 3.75
    print(f"{user_num} USD = {output} SAR")

elif currency1 == "USD" and currency2 == "AED":
    output = user_num * 3.67
    print(f"{user_num} {currency1} = {output} {currency2}")

# اذا كان العملة الصلية (AED) 
elif currency1 == "AED" and currency2 == "SAR":
    output = user_num * 1.02
    print(f"{user_num} {currency1} = {output} {currency2}")

elif currency1 == "AED" and currency2 == "USD":
    output = user_num / 3.67
    print(f"{user_num} {currency1} = {output} {currency2}")

# اذا ادخل الشخص نفس العملة 
elif currency1 == "SAR" and currency2 == "SAR" or currency1 == "USD" and currency2 ==  "USD" or currency1 == "AED" and currency2 == "AED":
    print(f"{user_num} {currency1} = {user_num} {currency2}")

   
else:
    print("###هناك خطأ في إدخال البيانات الرجاء المحاولة مرة اخرى####")



