/* 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 carSpeed = 187;
int fineFor20to40 = 500;
int fineFor40to60 = 1000;
int fineFor60to80 = 2000;
int fineFor80andMore = 5000;
int townSpeed = 60;
int overSpeed = carSpeed - townSpeed;
if(overSpeed < 20) {
System.
out.
println("Скорость не превышена или превышена незначительно"); }
else if(overSpeed >= 20 && overSpeed < 40) {
System.
out.
println("Штраф: " + fineFor20to40
); }
else if(overSpeed >= 40 && overSpeed < 60) {
System.
out.
println("Штраф: " + fineFor40to60
); }
else if(overSpeed >= 60 && overSpeed < 80) {
System.
out.
println("Штраф: " + fineFor60to80
); }
else if(overSpeed >= 80) {
System.
out.
println("Штраф: " + fineFor80andMore
); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVN5c3RlbS5vdXQucHJpbnRsbigi0KHQuNGB0YLQtdC80LAg0YDQsNGB0YfRkdGC0LAg0YjRgtGA0LDRhNC+0LIiKTsKCQkKCQlpbnQgY2FyU3BlZWQgPSAxODc7CgkJCgkJaW50IGZpbmVGb3IyMHRvNDAgPSA1MDA7CgkJaW50IGZpbmVGb3I0MHRvNjAgPSAxMDAwOwoJCWludCBmaW5lRm9yNjB0bzgwID0gMjAwMDsKCQlpbnQgZmluZU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