import java.util.Scanner;
class Ideone {
public static void main
(String[] args
) { Scanner sc
= new Scanner
(System.
in); System.
out.
println(" Tres nĂºmeros:"); int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int menor = a;
int maior = a;
if (b > maior) {
maior = b;
}
if (c > maior) {
maior = c;
}
if (b < menor) {
menor = b;
}
if (c < menor) {
menor = c;
}
System.
out.
println(" Maior: " + maior
+ " Menor: " + menor
); }
}
aW1wb3J0IGphdmEudXRpbC5TY2FubmVyOwoKY2xhc3MgSWRlb25lIHsKICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0cmluZ1tdIGFyZ3MpIHsKCSAgICBTY2FubmVyIHNjID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCSAgICBTeXN0ZW0ub3V0LnByaW50bG4oIiBUcmVzIG7Dum1lcm9zOiIpOwoJICAgIGludCBhID0gc2MubmV4dEludCgpOwoJICAgIGludCBiID0gc2MubmV4dEludCgpOwoJICAgIGludCBjID0gc2MubmV4dEludCgpOwoJICAgIGludCBtZW5vciA9IGE7CgkgICAgaW50IG1haW9yID0gYTsKCgkgICAgaWYgKGIgPiBtYWlvcikgewoJICAgIAltYWlvciA9IGI7CgkgICAgfQoJICAgIGlmIChjID4gbWFpb3IpIHsKCSAgICAJbWFpb3IgPSBjOwoJICAgIH0KCSAgICBpZiAoYiA8IG1lbm9yKSB7CgkgICAgCW1lbm9yID0gYjsKCSAgICB9CgkgICAgaWYgKGMgPCBtZW5vcikgewoJICAgIAltZW5vciA9IGM7CgkgICAgfQoJICAgIFN5c3RlbS5vdXQucHJpbnRsbigiIE1haW9yOiAiICsgbWFpb3IgKyAiIE1lbm9yOiAiICsgbWVub3IpOwogICAgfQp9