# -*- coding: utf-8 -*- n = int(input('first n natural numbers, n =')) print ("Difference: (Σn)² - Σn² =", n*(n-1)*(n+1)*(3*n+2)//12)