Поооооомооооогииииииитееееееее))))))))
package com.javarush.task.task05.task0531;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Совершенствуем функциональность
*/
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int minimum = min(a, b);
System.out.println("Minimum = " + minimum);
int v = Integer.parseInt(reader.readLine());
int w = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int d = Integer.parseInt(reader.readLine());
int e = Integer.parseInt(reader.readLine());
int Minimum = min(v, w, c, d, e);
}
public static int min(int a, int b) {
return a < b ? a : b;
}
public static int min(int v, int w, int c, int d, int e) {
if (min(v, w)> min(c, d)) {
if ((min(c, d)) > e)
return e;
else return min(c, d); }
else return min(v, w);
}
}