#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

int main() {
    vector<int>myints = {3, 55, 2, 7, 8};
    int total = 0;
    for (auto it = myints.begin(); it != myints.end(); ++it) {
        int x = int(log10(*it)) + 1;
        total = total * pow(10, x) + *it;
    }
    cout << total << endl;
    return 0;
}