/* 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
{
public static void main
(String[] args
) { System.
out.
println("Система расчёта штрафов"); int carSpeed = 78;
int fineFor1to10 = 30;
int fineFor10to15 = 50;
int fineFor15to20 = 70;
int fineFor20to25 = 115;
int fineFor25to30 = 180;
int fineFor30to40 = 260;
int fineFor40to50 = 400;
int fineFor50to60 = 560;
int fineFor60to70 = 700;
int fineFor70andMore = 800;
int townSpeed = 50;
int overSpeed = carSpeed - townSpeed;
if (overSpeed < 1) {
System.
out.
println("Скорость не превышена или превышена незначительно"); } else if (overSpeed >= 1 && overSpeed <= 10) {
System.
out.
println("Штраф: " + fineFor1to10
); } else if (overSpeed > 10 && overSpeed <= 15) {
System.
out.
println("Штраф: " + fineFor10to15
); } else if (overSpeed > 15 && overSpeed <= 20) {
System.
out.
println("Штраф: " + fineFor15to20
); } else if (overSpeed > 20 && overSpeed <= 25) {
System.
out.
println("Штраф: " + fineFor20to25
); } else if (overSpeed > 25 && overSpeed <= 30) {
System.
out.
println("Штраф: " + fineFor25to30
); } else if (overSpeed > 30 && overSpeed <= 40) {
System.
out.
println("Штраф: " + fineFor30to40
); } else if (overSpeed > 40 && overSpeed <= 50) {
System.
out.
println("Штраф: " + fineFor40to50
); } else if (overSpeed > 50 && overSpeed <= 60) {
System.
out.
println("Штраф: " + fineFor50to60
); } else if (overSpeed > 60 && overSpeed <= 70) {
System.
out.
println("Штраф: " + fineFor60to70
); } else if (overSpeed > 70) {
System.
out.
println("Штраф: " + fineFor70andMore
); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYg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