For this Question: You are given an integer N. You need to create an integer A, such that the product of digits of A is equal to N and the value of A is minimum possible.  

Output -1 if no such answer exists.The first and the only line of input contains an integer N.

1 <= N <= 1000000000000000000 (10^18)Output a single integer A. 

(The answer may not fit into 64 bit integer)Sample Input
27

Sample Output
39

Explanation :
The possible values for product 27 are 39, 93, 333, 139, 1139... (39 is the minimum possible)

Sample Input 
26

Sample Output
-1, I have written this Solution Code: n = int(input())
res = []
if (n >= 0 and n <= 9): 
        print(n) 
else:
	for i in range(9,1, -1): 
      
		while (n % i == 0): 
			
			res.append(i) 
			n = n //i 	

	if (n != 1): 
		print(-1)
	
	else:
		k = 0
		print(*res[::-1],sep=""), In this Programming Language: Python, Now tell me if this Code is compilable or not?