# Taking input
P = float(input("Enter principal: "))
R = float(input("Enter rate: "))
T = float(input("Enter time: "))
# Calculating Simple Interest
SI = (P * R * T) / 100
# Calculating Compound Interest
CI = P * (1 + R/100) ** T - P
# Comparing and printing result
if CI > SI:
print("Compound Interest is greater")
elif SI > CI:
print("Simple Interest is greater")
else:
print("Both are equal")
# (Optional) printing values
print("Simple Interest =", SI)
print("Compound Interest =", CI)