fork download
  1. def a(i):
  2. return (10**20//i)
  3. S=(a(3)*(3+3*a(3))+a(11)*(11+11*a(11))-a(33)*(33+33*a(33)))//2
  4. print(S%1000000007)
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
368366128