/* 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
	{
		System.out.println("Кофе-машина");
		
	//	int moneyAmount = 12;
	
		Scanner in = new Scanner(System.in);
		System.out.printf("сколько внести? ",/n);
		int moneyAmount=in.nextInt();
		
		System.out.println("Вы внесли " + moneyAmount + " руб.");
		
		int cappucinoPrice = 150;
		int americanoPrice = 65;
		int waterPrice = 20;
		int teaPrice = 80;
		
		boolean canBuySomething = false;
		
		if(moneyAmount >= cappucinoPrice) {
			System.out.println("Вы можете купить капучино");
			canBuySomething = true;
		}
		
		if(moneyAmount >= americanoPrice) {
			System.out.println("Вы можете купить американо");
			canBuySomething = true;
		}
		
		if(moneyAmount >= waterPrice) {
			System.out.println("Вы можете купить воду");
			canBuySomething = true;
		}
		
		if(moneyAmount >=teaPrice) {
			System.out.println("Вы можете купить чай");
		}
	
		if(canBuySomething == false) {
			System.out.println("Недостаточно средств :( Изучайте Java и зарабатывайте много!))");
		}
	}
}