while''do k=io.read('*n')or os.exit()print(k.." = 6 * "..(k%6>4 and(k+1)/6 .." - 1"or(k-1)/6 .." + 1"))end