#include<iostream> using namespace std; int main() { int a,c = 1,b; cin>>a; while (b < a) { d += c; c++; } }