/* 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("Coffe-maсhine");
		
		int moneyAmount = 20;
		
		int[] arOfPrice = new int[5];
		String[] arOfName = new String[5];
		
		arOfName[0] = "cappucino";
		arOfName[1] = "americano";
		arOfName[2] = "appleJuice";
		arOfName[3] = "milk";
		arOfName[4] = "water";
		
		arOfPrice[0]=150;
		arOfPrice[1]=80;
		arOfPrice[2]=70;
		arOfPrice[3]=40;
		arOfPrice[4]=25;
		
		boolean canBuyAnything = false;
		
		for(int i = 0; i < arOfPrice.length; ++i ){
			if( moneyAmount >= arOfPrice[i]) {
			System.out.println("You can buy" + arOfName[i]);
			canBuyAnything = true;
			}
		}
		
		if(canBuyAnything == false) {
			System.out.println("Недостаточно средств");
		}
	}
}