https://www.acmicpc.net/problem/2576
#include <iostream>
using namespace std;
int main() {
int min=987654321;
int sum=0;
for(int i=0;i<7;i++){
int a;
cin>>a;
if(a%2==1){
sum+=a;
if(a<min) min=a;
}
}
if(sum==0) cout<<-1;
else{
cout<<sum<<"\n";
cout<<min;
}
}