#include #include #include #include #include #include #include #include #include using namespace std; #define REP(i,first,last) for (int i=first;i y ? x : y) #define MIN(x,y) (x < y ? x : y) int N; int main(){ cin >> N; long max = 0; for (long i=0;i