#include <iostream>
#include <vector>
using namespace std;
int main(){
vector<int> v;
int cnt = 0;
int arr[7];
for (int i = 0;i < 7;i++) {
cin >> arr[i];
if (arr[i] % 2 != 0) {
cnt += arr[i];
v.push_back(arr[i]);
}
}
if (v.size() == 0) {
cout << -1;
return 0;
}
cout << cnt << "\n";
int m = 6767;
for (int i = 0;i < v.size();i++) {
if (m > v[i]) {
m = v[i];
}
}
cout << m;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: