/* 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 = 6;
int fineFor1to10 = 30;
int fineFor11to15 = 50;
int fineFor16to20 = 70;
int fineFor21to25 = 115;
int fineFor26to30 = 180;
int fineFor31to40 = 260;
int fineFor41to50 = 400;
int fineFor51to60 = 560;
int fineFor61to70 = 700;
int fineFor70andMore = 800;
int townSpeed = 50;
int overSpeed = carSpeed - townSpeed;
if (overSpeed < 20) {
System.
out.
println("Скорость не превышена или превышена незначительно"); } else if (overSpeed >= 1 && overSpeed < 10) {
System.
out.
println("Штраф: " + fineFor1to10
); } else if (overSpeed >= 11 && overSpeed < 15) {
System.
out.
println("Штраф: " + fineFor11to15
); } else if (overSpeed >= 16 && overSpeed < 20) {
System.
out.
println("Штраф: " + fineFor16to20
); } else if (overSpeed >= 21 && overSpeed < 25) {
System.
out.
println("Штраф: " + fineFor21to25
); } else if (overSpeed >= 26 && overSpeed < 30) {
System.
out.
println("Штраф: " + fineFor26to30
); } else if (overSpeed >= 31 && overSpeed < 40) {
System.
out.
println("Штраф: " + fineFor31to40
); } else if (overSpeed >= 41 && overSpeed < 50) {
System.
out.
println("Штраф: " + fineFor41to50
); } else if (overSpeed >= 51 && overSpeed < 60) {
System.
out.
println("Штраф: " + fineFor51to60
); } else if (overSpeed >= 61 && overSpeed < 70) {
System.
out.
println("Штраф: " + fineFor61to70
); } else if (overSpeed >= 70) {
System.
out.
println("Штраф: " + fineFor70andMore
); }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYX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