https://www.acmicpc.net/problem/2576
import java.util.*
fun main(args: Array<String>) {
val s=Scanner(System.`in`)
var min=987654321;
var sum=0;
for(i in 0 until 7){
var a=s.nextInt()
if(a%2==1){
sum+=a
if(a<min) min=a
}
}
if(sum==0) print(-1)
else{
println(sum)
println(min)
}
}