#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }#include <stdio.h> int main() { long long n; while(scanf("%lld", &n)!=EOF) printf("%lld %lld\n", n*(n+1)/2, n*(n+1)*(n+2)/6); return 0; }