#include <stdio.h>
int main(void) {
int a, x[100], i, j;
for (i = 0; i < 20; i++) {
x[i] = i + 1;
}
for (i = 19; i > 20 - a; i--) {
x[i] = x[i - 1];
}
x[20 - a] = 20;
for (i
= 0; i
< 20; i
++) { printf("%d ", x
[i
]); } return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKSB7CglpbnQgYSwgeFsxMDBdLCBpLCBqOwoJc2NhbmYoIiVkIiwgJmEpOwoJZm9yIChpID0gMDsgaSA8IDIwOyBpKyspIHsKCQl4W2ldID0gaSArIDE7Cgl9Cglmb3IgKGkgPSAxOTsgaSA+IDIwIC0gYTsgaS0tKSB7CgkJeFtpXSA9IHhbaSAtIDFdOwoJfQoJeFsyMCAtIGFdID0gMjA7CgkKCWZvciAoaSA9IDA7IGkgPCAyMDsgaSsrKSB7IHByaW50ZigiJWQgIiwgeFtpXSk7IH0KCXJldHVybiAwOwoKfQo=