x=int(input()) if x<150: print('%.1f'%(x0.4463)) elif x>=151 and x<=400: print('%.1f'%((1500.4463)+((x-150)0.4663))) else: print('%.1f'%(1500.5663))