#include using namespace std; using ll = long long; const int mx = 3e7; ll cnt[mx]; int main(){ cin.tie(nullptr); ios::sync_with_stdio(false); ll ans = 0; int x; cin>>x; map memo; for(int i = 0;i<=300;i++){ for(int b = 0;b<=i;b++){ for(int a = 0;a<=b;a++){ int now = a * a * a + b * b * b + i * i * i; if(now