Write a digit into each arrow such that each digit indicates the number of different digits the arrow is pointing at. For arrows pointing in more than one direction, the digits from all these directions together are considered.