#include #define rep(i,n)for(int i=0;i<(n);i++) using namespace std; int main(){ int n;cin>>n; int x=1,cnt=0; while(x