#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define NUM 3
void calc(int value[], int num, int *pmin, int *pmax)
{
int i, v;
*pmin = *pmax = value[0];
for (i = 1; i < num; i++) {
v = value[i];
if (v < *pmin) *pmin = v;
if (*pmax < v) *pmax = v;
}
}
int main()
{
int value[NUM];
int min, max;
int i, v;
for (i = 0; i < NUM; ) {
if (scanf("%d", &v
) != 1) { continue;
}
value[i++] = v;
}
calc(value, NUM, &min, &max);
return 0;
}
I2RlZmluZSBfQ1JUX1NFQ1VSRV9OT19XQVJOSU5HUwoKI2luY2x1ZGUgPHN0ZGlvLmg+CgojZGVmaW5lIE5VTSAzCgp2b2lkIGNhbGMoaW50IHZhbHVlW10sIGludCBudW0sIGludCAqcG1pbiwgaW50ICpwbWF4KQp7CglpbnQgaSwgdjsKCgkqcG1pbiA9ICpwbWF4ID0gdmFsdWVbMF07Cglmb3IgKGkgPSAxOyBpIDwgbnVtOyBpKyspIHsKCQl2ID0gdmFsdWVbaV07CgkJaWYgKHYgPCAqcG1pbikgKnBtaW4gPSB2OwoJCWlmICgqcG1heCA8IHYpICpwbWF4ID0gdjsKCX0KfQoKaW50IG1haW4oKQp7CglpbnQgdmFsdWVbTlVNXTsKCWludCBtaW4sIG1heDsKCWludCBpLCB2OwoKCWZvciAoaSA9IDA7IGkgPCBOVU07ICkgewoJCXByaW50Zigi5YWl5Yqb44Gb44KIICVjLT4iLCAnYScgKyBpKTsKCQlpZiAoc2NhbmYoIiVkIiwgJnYpICE9IDEpIHsKCQkJY29udGludWU7CgkJfQoJCXZhbHVlW2krK10gPSB2OwoJfQoKCWNhbGModmFsdWUsIE5VTSwgJm1pbiwgJm1heCk7CgoJcHJpbnRmKCLmnIDlpKflgKTjgIA644CAJWRcbiIsIG1heCk7CglwcmludGYoIuacgOWwj+WApOOAgDrjgIAlZFxuIiwgbWluKTsKCXJldHVybiAwOwp9Cg==