/* 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 = 10;
int espressoPrice = 60;
int americanoPrice = 80;
int milkPrice = 50;
int lattePrice = 150;
int waterPrice = 20;
int milkPrice = 30;
boolean canBuyAnything = false;
if(moneyAmount >= milkPrice)
{
System.
out.
println("Вы можете купить молоко"); canBuyAnything = true;
}
if(moneyAmount >= espressoPrice)
{
System.
out.
println("Вы можете купить эспрессо"); canBuyAnything = true;
}
if(moneyAmount >= americanoPrice)
{
System.
out.
println("Вы можете купить американо"); canBuyAnything = true;
}
if(moneyAmount >= lattePrice)
{
System.
out.
println("Вы можете купить латте"); canBuyAnything = true;
}
if(moneyAmount >= waterPrice)
{
System.
out.
println("Вы можете купить воду"); canBuyAnything = true;
}
if(moneyAmount <= 20) {
System.
out.
println("Недостаточно средств!"); }
}
}
ICAgIC8qIHBhY2thZ2Ugd2hhdGV2ZXI7IC8vIGRvbid0IHBsYWNlIHBhY2thZ2UgbmFtZSEgKi8KICAgICAKICAgIGltcG9ydCBqYXZhLnV0aWwuKjsKICAgIGltcG9ydCBqYXZhLmxhbmcuKjsKICAgIGltcG9ydCBqYXZhLmlvLio7CiAgICAgCiAgICAvKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KICAgIGNsYXNzIElkZW9uZQogICAgewogICAgCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgogICAgCXsKICAgIAkJU3lzdGVtLm91dC5wcmludGxuKCLQmtC+0YTQtS3QvNCw0YjQuNC90LAiKTsKICAgICAKICAgIAkJaW50IG1vbmV5QW1vdW50ID0gMTA7CiAgICAgCiAgICAJCWludCBlc3ByZXNzb1ByaWNlID0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