#include using namespace std; typedef long long ll; int main(void) { int d;cin >> d; int ret = 0; for(int x=1;x