Solution to the problem number 426 of AceptaelReto - 426.

Any questions do not hesitate to contact.

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int in;
    cin>>in;
    while(in!=0)
    {
        int suma=0,dividir=0;
        while(in!=0)
        {
            suma+=in;
            dividir++;
            cin>>in;
        }
        if(suma%dividir==0)
            cout<<"REPARTO JUSTO\n";
        else
            cout<<"IMPOSIBLE\n";
        cin>>in;
    }
    return 0;
}

Don't miss anything.

Keep in touch with Isaac Lozano Osorio!