#include using namespace std; int main(void){ long long ans=5000000000000000000; int n; cin>>n; for(int i=0;i>s; int minn=2; for(int j=0;j