using Nemerle.IO;for(mutable n;;print("$n = 6 * $(~n/ -6) $(\" +-\"[n%3]) 1\n"))scanf("%d",n)