File standardInput readLines map(n,writeln((n=n asNumber/30.17+.58|0)*(n+1)*(n+.5)/3))