#include <iostream>
#include <cassert>
int main()
{
constexpr int N = 5 ;
constexpr int a[N] = { 1, 2, 3, 4, 5 } ;
constexpr int b[N] = { 2, 9, 8, 0, 7 } ;
const auto isdigit = [] ( int v ) { return v >= 0 && v < 10 ; } ;
int sum = 0 ;
for( int i = 0 ; i < N ; ++i )
{
assert( isdigit( a[i] ) && isdigit( b[i] ) ) ;
sum *= 10 ;
sum += a[i] + b[i] ;
}
std::cout << sum << '\n' ;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y2Fzc2VydD4KCmludCBtYWluKCkKewogICAgY29uc3RleHByIGludCBOID0gNSA7CiAgICBjb25zdGV4cHIgaW50IGFbTl0gPSB7IDEsIDIsIDMsIDQsIDUgfSA7CiAgICBjb25zdGV4cHIgaW50IGJbTl0gPSB7IDIsIDksIDgsIDAsIDcgfSA7CgogICAgY29uc3QgYXV0byBpc2RpZ2l0ID0gW10gKCBpbnQgdiApIHsgcmV0dXJuIHYgPj0gMCAmJiB2IDwgMTAgOyB9IDsKICAgIGludCBzdW0gPSAwIDsKICAgIGZvciggaW50IGkgPSAwIDsgaSA8IE4gOyArK2kgKQogICAgewogICAgICAgIGFzc2VydCggaXNkaWdpdCggYVtpXSApICYmIGlzZGlnaXQoIGJbaV0gKSApIDsKICAgICAgICBzdW0gKj0gMTAgOwogICAgICAgIHN1bSArPSBhW2ldICsgYltpXSA7CiAgICB9CiAgICBzdGQ6OmNvdXQgPDwgc3VtIDw8ICdcbicgOwp9Cg==