#include <stdio.h>
void sort(int *a,int n)
{
int i, j, k, tmp;
for (i = 1; i < n; i++) {
tmp = a[i];
for (k = i; k > 0 && a[k - 1] > tmp; k--)
a[k] = a[k - 1];
a[k] = tmp;
for (j = 0; j < n; j++)
}
}
int main(void)
{
int i;
int a[7];
for (i = 0; i < 7; i++)
for (i = 0; i < 7; i++)
sort(a,7);
for (i = 0; i < 7; i++)
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIHNvcnQoaW50ICphLGludCBuKQp7CiAgICBpbnQgaSwgaiwgaywgdG1wOwoKCWZvciAoaSA9IDE7IGkgPCBuOyBpKyspIHsKCQl0bXAgPSBhW2ldOwoKCQlmb3IgKGsgPSBpOyBrID4gMCAmJiBhW2sgLSAxXSA+IHRtcDsgay0tKQoJCQlhW2tdID0gYVtrIC0gMV07CgkJYVtrXSA9IHRtcDsKCgkJcHJpbnRmKCIlLTJk5Zue55uu77yaIixpKTsKCQlmb3IgKGogPSAwOyBqIDwgbjsgaisrKQoJCQlwcmludGYoIiUtNWQgIiwgYVtqXSk7CgkJcHJpbnRmKCJcbiIpOwoJfQp9CgppbnQgbWFpbih2b2lkKQp7CglpbnQgaTsKCWludCBhWzddOwoKCXB1dHMoIjfkurrjga7ngrnmlbDjgpLooajnpLrjgZfjgabjgY/jgaDjgZXjgYQiKTsKCglmb3IgKGkgPSAwOyBpIDwgNzsgaSsrKQoJCXNjYW5mKCIlZCIsICZhW2ldKTsKCglwcmludGYoIuaVtOWIl+WJje+8miIpOwoJZm9yIChpID0gMDsgaSA8IDc7IGkrKykKCQlwcmludGYoIiUtNWQgIixhW2ldKTsKCXByaW50ZigiXG4iKTsKCglzb3J0KGEsNyk7CgoJcHJpbnRmKCLmlbTliJflvozvvJoiKTsKCWZvciAoaSA9IDA7IGkgPCA3OyBpKyspCgkJcHJpbnRmKCIlLTVkICIsYVtpXSk7CglwcmludGYoIlxuIik7CglyZXR1cm4gMDsKfQo=