import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
int moneyAmount = 130;
int capuchinoPrice = 150;
int espressoPrice = 80;
int waterPrice = 20;
int milkPrice = 55;
System.
out.
println("Кофе-машина");
boolean canBuyAnything = false;
if(moneyAmount >= capuchinoPrice) {
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("Недостаточно средств! Внесите ещё!!!"); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IG1vbmV5QW1vdW50ID0gMTMwOwoJCQoJCWludCBjYXB1Y2hpbm9QcmljZSA9IDE1MDsKCQlpbnQgZXNwcmVzc29QcmljZSA9IDgwOwoJCWludCB3YXRlclByaWNlID0gMjA7CgkJaW50IG1pbGtQcmljZSA9IDU1OwoJCQoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIik7CgkJCgkJYm9vbGVhbiBjYW5CdXlBbnl0aGluZyA9IGZhbHNlOwoKCQlpZihtb25leUFtb3VudCA+PSBjYXB1Y2hpbm9QcmljZSkgewoJCQljYW5CdXlBbnl0aGluZyA9IHRydWU7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigi0JLRiyDQvNC+0LbQtdGC0LUg0LrRg9C/0LjRgtGMINC60LDQv9GD0YfQuNC90L4iKTsKCQl9CgkJCgkJaWYobW9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