import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
int moneyAmount = 190;
int cappucinoPrice = 150;
int espressoPrice = 80;
int waterPrice = 20;
int milkPrice = 15;
System.
out.
println("Кофе-машина");
boolean canBuyAnything = false;
if(moneyAmount >= cappucinoPrice) {
canBuyAnything = true;
System.
out.
println("Вы можете купить капучино"); }
if(moneyAmount >= espressoPrice) {
canBuyAnything = true;
System.
out.
println("Вы можете купить эспрессо"); }
if(moneyAmount >= waterPrice) {
canBuyAnything = true;
System.
out.
println("Вы можете купить воду"); }
if(moneyAmount >= milkPrice){
canBuyAnything = true;
System.
out.
println("Вы можете купить молоко"); }
if(canBuyAnything == false) {
System.
out.
println("Недостаточно средств! Внесите ещё!!!"); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IG1vbmV5QW1vdW50ID0gMTkwOwoJCQoJCWludCBjYXBwdWNpbm9QcmljZSA9IDE1MDsKCQlpbnQgZXNwcmVzc29QcmljZSA9IDgwOwoJCWludCB3YXRlclByaWNlID0gMjA7CgkJaW50IG1pbGtQcmljZSA9IDE1OwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIik7CgkJCgkJYm9vbGVhbiBjYW5CdXlBbnl0aGluZyA9IGZhbHNlOwoJCQoJCWlmKG1vbmV5QW1vdW50ID49IGNhcHB1Y2lub1ByaWNlKSB7CgkJCWNhbkJ1eUFueXRoaW5nID0gdHJ1ZTsKCQkJU3lzdGVtLm91dC5wcmludGxuKCLQktGLINC80L7QttC10YLQtSDQutGD0L/QuNGC0Ywg0LrQsNC/0YPRh9C40L3QviIpOwoJCX0KCQkKCQlpZih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