#include using namespace std; int d; main() { cin>>d; for(int i=0;i<10;i++)for(int j=!i;j<10;j++) { d-=1+!!i; if(d<=0) { cout<<(d<0?i:j)<