#ifndef POINTER03_H_
#define POINTER03_H_
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
void array_swap (int *arr[]);
int main ()
{
int n;
scanf("%d", &n);
int **arr = (int **) malloc(sizeof(int*[n + 1]));
int **brr = (int **) malloc(sizeof(int*[n + 1]));
for (int i = 0; i < n; i++)
{
arr[i] = brr[i] = (int *) malloc(sizeof(int));
scanf("%d", arr[i]);
}
arr[n] = brr[n] = NULL;
array_swap(arr);
for (int i = 0; i < n; i++)
{
if (arr[i] != brr[i])
{
printf("peach found someone cheating!\n");
return 0;
}
printf("%d%c", *arr[i], " \n"[i == n - 1]);
}
if (arr[n] != NULL)
{
printf("peach found someone cheating!\n");
return 0;
}
}
#endif // POINTER03_H_
I2lmbmRlZiBQT0lOVEVSMDNfSF8KI2RlZmluZSBQT0lOVEVSMDNfSF8KCiNpbmNsdWRlIDxjc3RkaW8+CiNpbmNsdWRlIDxjc3RkbGliPgojaW5jbHVkZSA8Y3N0cmluZz4KI2luY2x1ZGUgPGNhc3NlcnQ+Cgp2b2lkIGFycmF5X3N3YXAgKGludCAqYXJyW10pOwoKaW50IG1haW4gKCkKewogICAgaW50IG47CiAgICBzY2FuZigiJWQiLCAmbik7CiAgICAKICAgIGludCAqKmFyciA9IChpbnQgKiopIG1hbGxvYyhzaXplb2YoaW50KltuICsgMV0pKTsKICAgIGludCAqKmJyciA9IChpbnQgKiopIG1hbGxvYyhzaXplb2YoaW50KltuICsgMV0pKTsKICAgIGZvciAoaW50IGkgPSAwOyBpIDwgbjsgaSsrKQogICAgewogICAgICAgIGFycltpXSA9IGJycltpXSA9IChpbnQgKikgbWFsbG9jKHNpemVvZihpbnQpKTsKICAgICAgICBzY2FuZigiJWQiLCBhcnJbaV0pOwogICAgfQogICAgYXJyW25dID0gYnJyW25dID0gTlVMTDsKCiAgICBhcnJheV9zd2FwKGFycik7CgogICAgZm9yIChpbnQgaSA9IDA7IGkgPCBuOyBpKyspCiAgICB7CiAgICAgICAgaWYgKGFycltpXSAhPSBicnJbaV0pCiAgICAgICAgewogICAgICAgICAgICBwcmludGYoInBlYWNoIGZvdW5kIHNvbWVvbmUgY2hlYXRpbmchXG4iKTsKICAgICAgICAgICAgcmV0dXJuIDA7CiAgICAgICAgfQogICAgICAgIHByaW50ZigiJWQlYyIsICphcnJbaV0sICIgXG4iW2kgPT0gbiAtIDFdKTsKICAgIH0KCiAgICBpZiAoYXJyW25dICE9IE5VTEwpCiAgICB7CiAgICAgICAgcHJpbnRmKCJwZWFjaCBmb3VuZCBzb21lb25lIGNoZWF0aW5nIVxuIik7CiAgICAgICAgcmV0dXJuIDA7CiAgICB9Cn0KI2VuZGlmIC8vIFBPSU5URVIwM19IXwo=