#include #include #include #include using namespace std; typedef long long int ll; int num(int n){ int cnt=0; while(n){ cnt++; n/=10; } return cnt; } int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n; cin >> n; vector a; a.push_back(0); for(int i=0;i> x; a.push_back(x); } bool ok=true; for(int i=0;i