#include<bits/stdc++.h> using namespace std; int main(){ int a=0,n,b=1; cin>>a; while(a>n){ a+=b; b++; } }