//* 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 = 12;
int espressoPrice = 80;
int cappucinoPrice = 150;
int waterPrice = 20;
int milkPrice = 21;
boolean canBuyAnything = false;
if(moneyAmount >= espressoPrice)
{
System.
out.
println("Вы можете купить эспрессо"); canBuyAnything = true;
}
if(moneyAmount >= cappucinoPrice)
{
System.
out.
println("Вы можете купить капучино"); canBuyAnything = true;
}
if(moneyAmount >= waterPrice)
{
System.
out.
println("Вы можете купить воду"); canBuyAnything = true;
}
if(canBuyAnything == false) {
System.
out.
println("Недостаточно средств :( Учите питон и идите работать!))"); }
if(moneyAmount >= milkPrice)
{
System.
out.
println("Вы можете купить воду, но все равно учи пайтон"); canBuyAnything = true;
}
if(canBuyAnything == false) {
System.
out.
println("Недостаточно средств :( Учите питон и идите работать!))"); }
}
}
Ly8qIHBhY2thZ2Ugd2hhdGV2ZXI7IC8vIGRvbid0IHBsYWNlIHBhY2thZ2UgbmFtZSEgKi8KIAppbXBvcnQgamF2YS51dGlsLio7CmltcG9ydCBqYXZhLmxhbmcuKjsKaW1wb3J0IGphdmEuaW8uKjsKIAovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigi0JrQvtGE0LUt0LzQsNGI0LjQvdCwIik7CiAKCQlpbnQgbW9uZXlBbW91bnQgPSAxMjsKIAoJCWludCBlc3ByZXNzb1ByaWNlID0gODA7CgkJaW50IGNhcHB1Y2lub1ByaWNlID0gMTUwOwoJCWludCB3YXRlclByaWNlID0gM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