import apple.laf.JRSUIConstants; import java.util.Scanner; public class Harvest { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int area = Integer.parseInt(scanner.nextLine()); double grapePerMeter = Double.parseDouble(scanner.nextLine()); int wineNeeded = Integer.parseInt(scanner.nextLine()); int workers = Integer.parseInt(scanner.nextLine()); double totalWine = area * grapePerMeter * 0.4 / 2.5; double difference = 0.0; if (totalWine < wineNeeded) { System.out.printf("It will be a tough winter! More %.0f liters wine needed.", Math.floor(wineNeeded - totalWine)); }else if (totalWine >= wineNeeded) { difference = (totalWine - wineNeeded) / workers; System.out.printf("Good harvest this year! Total wine: %.0f liters.\n", Math.floor(totalWine)); System.out.printf("%.0f liters left -> %.0f liters per person.", Math.floor(totalWine - wineNeeded), difference); } } }