Given big integer n. Can you rearrange its digits so that the resulting number is divisible by 8? If there are multiple answers, print the smallest. Do not print the leading '0'.
One big integer n (1 ≤ |n| ≤ 1000, where |n| denotes the number of digits in number n, n ≥ 1)
If the solution does not exist, print -1. Otherwise print the required minimum number.