22 lines
522 B
Java
22 lines
522 B
Java
import java.util.*;
|
|
|
|
public class _2576 {
|
|
public static void main(String[] args) {
|
|
Scanner sc = new Scanner(System.in);
|
|
int res = 0, min = 101;
|
|
for(int i=0; i<7; i++) {
|
|
int n = sc.nextInt();
|
|
if(n % 2 == 1) {
|
|
res += n;
|
|
min = Math.min(min, n);
|
|
}
|
|
}
|
|
sc.close();
|
|
|
|
if(res == 0) System.out.println(-1);
|
|
else {
|
|
System.out.println(res);
|
|
System.out.println(min);
|
|
}
|
|
}
|
|
} |