#include using namespace std; #define int long long signed main(){ int N; cin>>N; for(int i=0;i>S; int now = false; for(int j=0;j