/// G. Hagopian doing PPP3 exercise 3

#include "std_lib_facilities.h"
#include <cstdlib>
#include <ctime>

int main() {
    srand(time(0));
    int a,b,c;
    while(1) {
        a=rand()%100;
        b=rand()%100;
        c=rand()%100;
        if(a<b) {
            if(c<b) {
                if(a<c) cout << a << ',' << c << ',' << b;
                else cout << c << ',' << a << ',' << b;
            }
            else cout << a << ',' << b << ',' << c;
        }
        else if(c>a) cout << b << ',' << a << ',' << c;
        else if(b<c) cout << b << ',' << c << ',' << a;
        else cout << c << ',' << b << ',' << a;
        cin.get();
    }
}
