Recursive Digit Sum

  • + 0 comments
    n, k = map(int, input().split())
    print( n * k % 9 or 9)