#include #define MAX 1000001 long long a[MAX]; bool aligned(long long i, long long j, long long k) { long long realu = j-i; long long imagu = a[j]-a[i]; long long realv = k-i; long long imagv = a[k]-a[i]; return realu*imagv-imagu*realv==0; } int main() { for (long long n=1; n