print("Enter the details of first application")
p1=int(input("Enter the power in Watt = "))
t1=int(input("Enter the number of hours used = "))
n1=int(input("Enter the number of application = "))
print("Enter the details of second application")
p2=int(input("Enter the power in Watt = "))
t2=int(input("Enter the number of hours used = "))
n2=int(input("Enter the number of application = "))
print("Enter the details of third application")
p3=int(input("Enter the power in Watt = "))
t3=int(input("Enter the number of hours used = "))
n3=int(input("Enter the number of application = "))
print("Enter the details of fourth application")
p4=int(input("Enter the power in Watt = "))
t4=int(input("Enter the number of hours used = "))
n4=int(input("Enter the number of application = "))
print("Enter the details of fifth application")
p5=int(input("Enter the power in Watt = "))
t5=int(input("Enter the number of hours used = "))
n5=int(input("Enter the number of application = "))
d=int(input("Enter number of days in the month = "))
e1=(p1*t1*n1)*0.001
e2=(p2*t2*n2)*0.001
e3=(p3*t3*n3)*0.001
e4=(p4*t4*n4)*0.001
e5=(p5*t5*n5)*0.001
e=(e1+e2+e3+e4+e5)*d
if 0<e<=200:
print("Due Rs =",0)
elif 201<e<=400:
b1=e-200
print("The due bill = INR",b1*(3.5))
elif 401<e<=600:
b1=e-200
b2=e-400
print("The due bill = INR",b2*7+b1*3.5)
elif 601<e<=800:
b1=e-200
b2=e-400
b3=e-600
print("The due bill = INR",b3*7+b2*3.5)
else:
b1=e-200
b2=e-400
b3=e-600
b4=e-800
print("The due bill = INR",b4*9+b3*7+b2*3.5)