import java.util.*;
import java.lang.*;
import java.io.*;
class Ideone
{
{
int moneyAmount = 100;
int capuchinoPrice = 150;
int espressoPrice = 80;
int waterPrice = 20;
int milkPrice = 50;
int hotChokolatePrice = 120;
int mokachinoPrice = 110;
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(moneyAmount >= hotChokolatePrice) {
canBuyAnything = true;
System.
out.
println("Вы можете купить горячий шоколад"); }
if(moneyAmount >= mokachinoPrice) {
canBuyAnything = true;
System.
out.
println("Вы можете купить моккачино"); }
if(canBuyAnything == false) {
System.
out.
println("Недостаточно средств! Внесите ещё!!!"); }
}
}
aW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgpjbGFzcyBJZGVvbmUKewoJcHVibGljIHN0YXRpYyB2b2lkIG1haW4gKFN0cmluZ1tdIGFyZ3MpIHRocm93cyBqYXZhLmxhbmcuRXhjZXB0aW9uCgl7CgkJaW50IG1vbmV5QW1vdW50ID0gMTAwOwoJCQoJCWludCBjYXB1Y2hpbm9QcmljZSA9IDE1MDsKCQlpbnQgZXNwcmVzc29QcmljZSA9IDgwOwoJCWludCB3YXRlclByaWNlID0gMjA7CgkJaW50IG1pbGtQcmljZSA9IDUwOwoJCWludCBob3RDaG9rb2xhdGVQcmljZSA9IDEyMDsKCQlpbnQgbW9rYWNoaW5vUHJpY2UgPSAxMTA7CgkJCgkJU3lzdGVtLm91dC5wcmludGxuKCLQmtC+0YTQtS3QvNCw0YjQuNC90LAiKTsKCQkKCQlib29sZWFuIGNhbkJ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