#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int S = 0;
int a[10];
for (int i = 0; i < 10; i++)
{
cin >> a[i];
if (a[i] % 2 != 0 && a[i] != 0)
S += a[i];
cout << i + 1 << " ";
}
cout << endl << "SUM=" << S;
return 0;
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
int S = 0;
int a[10];
for (int i = 0; i < 10; i++)
{
cin >> a[i];
if (a[i] % 2 != 0 && a[i] != 0)
{
S += a[i];
cout << i + 1 << " ";
}
}
cout << endl << "SUM=" << S;
return 0;
}