/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
System.
out.
println("Кофе-машина");
int moneyAmount = 55;
int hotMilk = 55;
int beansMilk = 170;
int coolMilk = 12;
boolean canBuyAnything = false;
if(moneyAmount >= hotMilk) {
System.
out.
println("Вы можите и должны купить горячие молоко "); canBuyAnything = true;
}
if(moneyAmount >= beansMilk) {
System.
out.
println("Вы можете и хотите купить бобовое молоко"); canBuyAnything = true;
}
if(moneyAmount >= coolMilk) {
System.
out.
println("Вы можете купить холодное молоко "); canBuyAnything = true;
}
if(canBuyAnything == false) {
System.
out.
println("Недостаточно средств! Возмите кредит :("); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIik7CgkJCgkJaW50IG1vbmV5QW1vdW50ID0gNTU7CgkJCgkJaW50IGhvdE1pbGsgPSA1NTsKCQlpbnQgYmVhbnNNaWxrID0gMTcwOwoJCWludCBjb29sTWlsayA9IDEyOwoJCQoJCWJvb2xlYW4gY2FuQnV5QW55dGhpbmcgPSBmYWxzZTsKCQkKCQlpZihtb25leUFtb3VudCA+PSBob3RNaWxrKSB7CgkJCVN5c3RlbS5vdXQucHJpbnRsbigi0JLRiyDQvNC+0LbQuNG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