import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); float price = scanner.nextFloat(); if(price >= 5000.0){ price *= 0.6; }else if(price >= 2000.0){ price *= 0.7; }else if(price >= 500.0){ price *= 0.8; }else if(price >= 100.0){ price *= 0.9; } System.out.printf("%.1f", price); } }