https://www.acmicpc.net/problem/2576
import java.util.*;
public class Main {
public static void main(String args[]) {
Scanner s=new Scanner(System.in);
int min=987654321;
int sum=0;
for(int i=0;i<7;i++){
int a=s.nextInt();
if(a%2==1){
sum+=a;
if(a<min) min=a;
}
}
if(sum==0) System.out.print(-1);
else{
System.out.println(sum);
System.out.println(min);
}
}
}