Print the digital root This is different from My Word can beat up your Word as it is less complex and only requires you to calculate it, and not compare them.

To find the digital root, take all of the digits of a number, add them, and repeat until you get a one-digit number. For example, if the number was 12345, you would add 1, 2, 3, 4, and 5, getting 15. You would then add 1 and 5, giving you 6.

Your task

Given an integer N (0 &lt;= N &lt;= 10000) through STDIN, print the digital root of N.

Test cases

1 -&gt; 1
45 -&gt; 9
341 -&gt; 8
6801 -&gt; 6
59613 -&gt; 6
495106 -&gt; 7


Remember, this is code-golf, so the code with the smallest number of bytes wins.
Pyke, 1 byte
s

Try it here!
Takes the digital root of the input