#include <iostream>
#include <sstream>
#include <unordered_map>
#include <cstdlib>

int main()
{
    // read in the values instead of this
    const int value_of_credit = 200 ;
    const int available[] = { 1, 2, 67, 3, 4, 133, 5, 6, 7, 8, 9 } ;
    const std::size_t N = sizeof(available)/sizeof(*available) ;

    std::unordered_map<int,int> map ;
    for( std::size_t pos = 0 ; pos < N ; ++pos )
    {
        auto iter = map.find( available[pos] ) ;
        if( iter != map.end() )
        {
            std::cout << iter->second << ' ' << pos << '\n' ;
            return EXIT_SUCCESS ;
        }
        else map[ value_of_credit - available[pos] ] = pos ;
    }
    // return EXIT_FAILURE ; // no solutio
}
