Problem

Source:

Tags: modular arithmetic, Divisibility, Digits, decimal representation, IMO, IMO 1975, digit sum



When $4444^{4444}$ is written in decimal notation, the sum of its digits is $ A.$ Let $B$ be the sum of the digits of $A.$ Find the sum of the digits of $ B.$ ($A$ and $B$ are written in decimal notation.)