Apply sameDigits' using liftA2.