#include #include int main() { int n, a1; scanf("%d %d", &n, &a1); int min=INT_MAX, tmp=a1, nLast; for (int i=1; i