unit = int(input('Enter your power unit: '))
while(unit<0):
print('invoid unit')
unit = int(input('Enter you power unit: '))
if(unit>=0):
if(unit<=150):
if(unit<=15):
x = (unit*2.3488)+38.22
elif(unit<=25):
x = 38.22+(15*2.3488)+(unit-15)
elif(unit<=35):
x = 38.22+(15*2.3488)+(10*2.9882)+(unit-25)*3.2405
elif(unit<=100):
x = 38.22+ (15*2.3488)+(10*2.9882)+(10*3.2405)+(unit-65)*3.6237
elif(unit<=150):
x = 38.22+ (15*2.3488)+(10*2.9882)+(10*3.2405)+(65*3.6237)+(unit-100)*3.7171
else:
if(unit<=400):
x = 38.22+(150*3.2484)+(unit-150)*3.221
elif(unit>=400):
x = 38.22+(150*3.2484)+(250*4.2218)+(unit-400)*4.4217