import java.util.*;
class Ideone
{
public static void main
(String[] args
) {
Scanner sc
= new Scanner
(System.
in); int maior1 = 0,
maior2 = 0;
for(int i = 0; i < 5; i++) {
System.
out.
println(" Digite números:"); int num = sc.nextInt();
if(num > maior1) {
maior2 = maior1;
maior1 = num;
} else if(num > maior2) {
maior2 = num;
}
}
System.
out.
println(maior1
+ " - " + maior2
); }
}
aW1wb3J0IGphdmEudXRpbC4qOwoKY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKQoJewoJCVNjYW5uZXIgc2MgPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCWludCBtYWlvcjEgPSAwLCAKCQkgICAgbWFpb3IyID0gMDsKCgkJZm9yKGludCBpID0gMDsgaSA8IDU7IGkrKykgewoJCQlTeXN0ZW0ub3V0LnByaW50bG4oIiBEaWdpdGUgbsO6bWVyb3M6Iik7CgkJCWludCBudW0gPSBzYy5uZXh0SW50KCk7CgkJCWlmKG51bSA+IG1haW9yMSkgewoJCQkJbWFpb3IyID0gbWFpb3IxOwoJCQkJbWFpb3IxID0gbnVtOwoJCQl9IGVsc2UgaWYobnVtID4gbWFpb3IyKSB7CgkJCQltYWlvcjIgPSBudW07CgkJCX0KCQl9CgkJU3lzdGVtLm91dC5wcmludGxuKG1haW9yMSArICIgLSAiICsgbWFpb3IyKTsKCX0KfQo=