Find the sum (11+22+33+....+nn) mod m.
Two positive integers n and m (n,m≤106).
Print the value of the sum modulo m.