#include <stdio.h>
#include <stdlib.h>
int compare(const void *a, const void *b) {
return (*(int *)a - *(int *)b);
}
int main() {
int numbers[20], n = 0, num;
char input[10];
while (1) {
if (input[0] == 's' && input[1] == 't' && input[2] == 'o' && input[3] == 'p' && input[4] == '\0') {
break;
}
int is_duplicate = 0;
for (int i = 0; i < n; i++) {
if (numbers[i] == num) {
is_duplicate = 1;
break;
}
}
if (!is_duplicate) {
numbers[n++] = num;
}
}
qsort(numbers
, n
, sizeof(int), compare
);
for (int i = 0; i < n; i++) {
}
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNpbmNsdWRlIDxzdGRsaWIuaD4KCmludCBjb21wYXJlKGNvbnN0IHZvaWQgKmEsIGNvbnN0IHZvaWQgKmIpIHsKICAgIHJldHVybiAoKihpbnQgKilhIC0gKihpbnQgKiliKTsKfQoKaW50IG1haW4oKSB7CiAgICBpbnQgbnVtYmVyc1syMF0sIG4gPSAwLCBudW07CiAgICBjaGFyIGlucHV0WzEwXTsKCiAgICB3aGlsZSAoMSkgewogICAgICAgIHNjYW5mKCIlcyIsIGlucHV0KTsKCiAgICAgICAgaWYgKGlucHV0WzBdID09ICdzJyAmJiBpbnB1dFsxXSA9PSAndCcgJiYgaW5wdXRbMl0gPT0gJ28nICYmIGlucHV0WzNdID09ICdwJyAmJiBpbnB1dFs0XSA9PSAnXDAnKSB7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KCiAgICAgICAgbnVtID0gYXRvaShpbnB1dCk7ICAKCiAgICAgICAgaW50IGlzX2R1cGxpY2F0ZSA9IDA7CiAgICAgICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspIHsKICAgICAgICAgICAgaWYgKG51bWJlcnNbaV0gPT0gbnVtKSB7CiAgICAgICAgICAgICAgICBpc19kdXBsaWNhdGUgPSAxOwogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaWYgKCFpc19kdXBsaWNhdGUpIHsKICAgICAgICAgICAgbnVtYmVyc1tuKytdID0gbnVtOwogICAgICAgIH0KICAgIH0KICAgIHFzb3J0KG51bWJlcnMsIG4sIHNpemVvZihpbnQpLCBjb21wYXJlKTsKCiAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykgewogICAgICAgIHByaW50ZigiJWQgIiwgbnVtYmVyc1tpXSk7CiAgICB9CgogICAgcmV0dXJuIDA7Cn0=