s="$System.in"-'\n' (9..0).any{i->j=s.count println s*.toLong().sum{i%9%6?(i>6?it>4?7&i:8&i:i+it)%5?'<->':' | ':i-6|--j&3?'===':'=*='}}