def a(i): return (10**20//i)S=(a(3)*(3+3*a(3))+a(11)*(11+11*a(11))-a(33)*(33+33*a(33)))//2print(S%1000000007)
Standard input is empty
368366128
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!