```
int quotient(int , int );
int remainder(int , int );
void seperate(int);    

int main()
{
    int input;

    cout << "Input int " << endl;
    cin >> input;

    seperate(input);
}

int quotient(int divident, int divisor)
{
    return divident / divisor;
}

int remainder(int divident, int divisor)
{
    return divident % divisor;
}

void seperate(int input)
{

    int integers[6] = {};

    for (int i = 1; i <= 5; i++)
    {
        integers[i] = quotient(remainder(input, pow(10, 6 - i)), pow(10,5 - i));
    }

    for (int i = 1; i <= 5; i++)
    {
        cout << integers[i] << setw(2);
    }

    cout << endl;

}

```

I am wondering why integer separation works for integers with small value (ex 1234) but doesn't work with big values (ex 32767) . Outcome for such big input values come as 3 2-2-3-3 (with dashes). Any suggestions?