// Arup Guha
// 3/21/2017
// Solution to 1991 UCF HS Contest Problem: Weird Multiplication

import java.util.*;

public class weird {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		// Read till eof
		while (stdin.hasNext()) {

			// Get input, calculate product.
			int a = stdin.nextInt();
			int b = stdin.nextInt();
			int res = a*b;

			// Begin output.
			System.out.print(a+" * "+b+" = ");
			while (a > 0) {

				// We print if a is odd.
				if (a%2 == 1) {
					System.out.print(b+" ");

					// This guarantees that it's not the last to print.
					if (a > 1) System.out.print("+ ");
				}

				// Update for next iteration.
				a /= 2;
				b *= 2;
			}

			// End with result.
			System.out.println("= "+res);
		}
	}
}