import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
int moneyAmount = 190;
int cappucinoPrice = 150;
int espressoPrice = 80;
int waterPrice = 20;
int milk = 10;
System.
out.
println("Кофе-машина");
if(moneyAmount >= milk) {
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(canBuyAnything == false) {
System.
out.
println("Недостаточно средств! Внесите ещё!!!"); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IG1vbmV5QW1vdW50ID0gMTkwOwoJCQoJCWludCBjYXBwdWNpbm9QcmljZSA9IDE1MDsKCQlpbnQgZXNwcmVzc29QcmljZSA9IDgwOwoJCWludCB3YXRlclByaWNlID0gMjA7CgkJaW50IG1pbGsgPSAxMDsKCQkKCQlTeXN0ZW0ub3V0LnByaW50bG4oItCa0L7RhNC1LdC80LDRiNC40L3QsCIpOwoJCQoJCWlmKG1vbmV5QW1vdW50ID49IG1pbGspIHsKCQkJU3lzdGVtLm91dC5wcmludGxuKCLQktGLINC80L7QttC10YLQtSDQutGD0L/QuNGC0Ywg0LzQvtC70L7QutC+Iik7CgkJfQoJCQoJCWJvb2xlYW4gY2FuQnV5QW55dGhpbmcgPSBmYWxzZTsKCQkKCQlpZihtb25leUFtb3VudCA+PSBjYXBwdWNpbm9QcmljZSkgewoJCQljYW5CdXlBbnl0aGluZyA9IHRydWU7CgkJCVN5c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