#include <iostream>

const int MAX_SIZE = 3;

class BigInt
{
	public:
	BigInt( const char *value );
	friend std::ostream &operator<<( std::ostream &stm , const BigInt &bi );
	private:
	int value[ MAX_SIZE ];
};

BigInt::BigInt( const char *value )
{
	for( int i = 0; i < MAX_SIZE; ++i )
	{
		//this->value[ i ] = -'0' + *value++;
		this->value[ i ] = *value - '0';
		++value;
	}
}

std::ostream &operator<<( std::ostream &stm , const BigInt &bi )
{
	for( int i = 0; i < MAX_SIZE; ++i )
	{
		stm << bi.value[ i ];
	}
	return( stm );
}

int main()
{
	//char array[] = "123";
	//const char* value = "123";

	//BigInt bi1( value );
	
	//BigInt bi1( array );
	BigInt bi1( "123" );
	std::cout << bi1 << std::endl;
}