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 = 30;
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("Недостаточно средств! Внесите ещё!!!"); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IG1vbmV5QW1vdW50ID0gMTkwOwoJCQoJCWludCBjYXBwdWNpbm9QcmljZSA9IDE1MDsKCQlpbnQgZXNwcmVzc29QcmljZSA9IDgwOwoJCWludCB3YXRlclByaWNlID0gMjA7CgkJaW50IG1pbGtQcmljZSA9IDMwOwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIik7CgkJCgkJYm9vbGVhbiBjYW5CdXlBbnl0aGluZyA9IGZhbHNlOwoJCQoJCWlmKG1vbmV5QW1vdW50ID49IGNhcHB1Y2lub1ByaWNlKSB7CgkJCWNhbkJ1eUFueXRoaW5nID0gdHJ1ZTsKCQkJU3lzdGVtLm91dC5wcmludGxuKCLQktGLINC80L7QttC10YLQtSDQutGD0L/QuNGC0Ywg0LrQsNC/0YPRh9C40L3QviIpOwoJCX0KCQkKCQlpZih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