/* 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 = 170;
		Map<Integer, String> drinkDictionary = new TreeMap<>();
		drinkDictionary.put(120, "капучино");
		drinkDictionary.put(160, "латте");
		drinkDictionary.put(20, "воду");
		drinkDictionary.put(15, "молоко");
		boolean canBuyAnything = false;
		for(Map.Entry<Integer, String> item : drinkDictionary.entrySet()){
			if (moneyAmount >= item.getKey()) {
        		System.out.println("Вы можете купить " + item.getValue());
        		canBuyAnything = true;
			}
       }
		if (!canBuyAnything) {
			System.out.println("Недостаточно средств");
		}
	}
}