#include using namespace std; int N; using ll=long long; bool ok(vectora){ for(int i=0;ilcm((ll)a[i+1],(ll)a[i+2]))continue; return 0; } return 1; } void solve(); int main(){ cin>>N; vectora={3,4,8}; for(int i=3;ina(i+1); for(int j=0;j