Calculate the digital root of the given number. The digital root is defined by the following expression:
DigitalRoot(x)={xif x < 10DigitalRoot(SumOfDigits(x))otherwise
On the first line, a natural number n(1≤n≤1030).
The solution to the problem in a single line.
8
8
11
2
173
2
Login to be able to submit.