p=int(input("Enter the principal amount = "))
r=int(input("Enter the rate of interest = "))
t=int(input("Enter the time = "))
si=(p*r*t)/100
a=p*((1+(r/0.01))**t)
ci=a-p
print("The Simple Interest for quarter =",si/4)
print("The Compound Interest for quarter =",ci/4)
print("The Simple Interest for half year =",si/2)
print("The Compound Interest for half year =",ci/2)
print("The Simple Interest for annual =",si/1)
print("The Compound Interest for annual =",ci/1)