package com.javarush.task.pro.task04.task0410;
import java.util.Scanner;
/*
Второе минимальное число из введенных
*/
public class Solution {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int min=0;
int v;
while(console.hasNextInt()){
int x = console.nextInt();
int y = console.nextInt();
if(x>y){
min=y;
}
else{
min=x;
}
v=min;
System.out.println(v);
}
}
}
package com.javarush.task.pro.task04.task0410;
import java.util.Scanner;
/*
Второе минимальное число из введенных
*/
public class Solution {
public static void main(String[] args) {
Scanner console = new Scanner(System.in);
int min=0;
int v;
while(console.hasNextInt()){
int x = console.nextInt();
int y = console.nextInt();
if(x>y){
min=y;
}
else{
min=x;
}
v=min;
System.out.println(v);
}
}
}