/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
			// your code goes here  - эмулятор кофе-машины
			System.out.println("Кофе-Машина");
			
			int moneyAmount = 120;
			
			// цены напитков
			
			int espressoPrice = 80;
			int capuccinoPrice = 150;
			int milkPrice = 60;
			int waterPrice = 20;
			
			boolean canBuyAnything = false;
			
			System.out.println("Введите количество вносимых денег");
			Scanner myScanner = new Scanner(System.in);
			moneyAmount = myScanner.nextInt();
			System.out.printf("Внесено: %d \n", moneyAmount);
			
			if (moneyAmount >= espressoPrice) {
				 System.out.println("Вы можете купить эспрессо");
				 canBuyAnything = true;
			}
			
			if (moneyAmount >= capuccinoPrice) {
				 System.out.println("Вы можете купить капучино");
				 canBuyAnything = true;
			}
			
			if (moneyAmount >= milkPrice) {
				 System.out.println("Вы можете купить молоко");
				 canBuyAnything = true;
			}
			
			if (moneyAmount >= waterPrice) {
				 System.out.println("Вы можете купить воду");
				 canBuyAnything = true;
			}
			
			if (canBuyAnything == false) {
				 System.out.println("Недостаточно средств");
				 
			}
	}
}