Little X used to play a card game called "24 Game", but recently he has found it too easy. So he invented a new game.

Initially you have a sequence of n integers: 1, 2, ..., n. In a single step, you can pick two of them, let's denote them a and b, erase them from the sequence, and append to the sequence either a + b, or a - b, or a × b.

After n - 1 steps there is only one number left. Can you make this number equal to 24?

Input

The first line contains a single integer n (1 ≤ n ≤ 105).

Output

If it's possible, print "YES" in the first line. Otherwise, print "NO" (without the quotes).

If there is a way to obtain 24 as the result number, in the following n - 1 lines print the required operations an operation per line. Each operation should be in form: "a op b = c". Where a and b are the numbers you've picked at this operation; op is either "+", or "-", or "*"; c is the result of corresponding operation. Note, that the absolute value of c mustn't be greater than 1018. The result of the last operation must be equal to 24. Separate operator sign and equality sign from numbers with spaces.

If there are multiple valid answers, you may print any of them.

Examples

Input

1


Output

NO


Input

8


Output

YES
8 * 7 = 56
6 * 5 = 30
3 - 4 = -1
1 - 2 = -1
30 - -1 = 31
56 - 31 = 25
25 + -1 = 24

Source: codeforces | Difficulty: MEDIUM
Tags: Greedy algorithms

Mathematics

Constructive algorithms


Solutions:
def test(n):
	if n >= 4:
		print('YES')
		if n % 2 == 0:
			print('1 + 2 = 3')
			print('3 + 3 = 6')
			print('6 * 4 = 24')
			i = 4
			while i <= n - 2:
				print(str(i + 2) + ' - ' + str(i + 1) + ' = 1')
				print('24 * 1 =  24')
				i += 2
		else:
			print('5 - 2 = 3')
			print('1 + 3 = 4')
			print('4 + 4 = 8')
			print('3 * 8 = 24')
			i = 5
			while i <= n - 2:
				print(str(i + 2) + ' - ' + str(i + 1) + ' = 1')
				print('24 * 1 = 24')
				i += 2
	else:
		print('NO')
n = int(input().strip())
test(n)


n = int(input())
if n < 4:
	print('NO', end='')
if n == 4:
	print('YES')
	print('2 * 4 = 8' + '\n' + '3 * 8 = 24' + '\n' + '1 * 24 = 24', end='')
if n == 5:
	print('YES')
	print('5 + 3 = 8')
	print('8 - 2 = 6')
	print('6 * 4 = 24')
	print('1 * 24 = 24')
if n == 7:
	print('YES')
	print('7 - 6 = 1')
	print('1 - 1 = 0')
	print('5 * 0 = 0')
	print('2 + 0 = 2')
	print('2 * 4 = 8' + '\n' + '3 * 8 = 24', end='')
if n > 5 and n % 2 == 0:
	print('YES')
	arr = []
	sub_num = 0
	for i in range(1, n + 1):
		arr.append(i)
	for i in range(4, n - 1, 2):
		print(str(arr[i + 1]) + ' - ' + str(arr[i]) + ' = 1')
		sub_num += 1
	for i in range(0, sub_num):
		print('1 * 1 = 1')
	print('2 * 4 = 8' + '\n' + '3 * 8 = 24' + '\n' + '1 * 24 = 24', end='')
if n > 7 and n % 2 != 0:
	print('YES')
	arr = []
	sub_num = 0
	for i in range(1, n + 1):
		arr.append(i)
	for i in range(5, n - 1, 2):
		print(str(arr[i + 1]) + ' - ' + str(arr[i]) + ' = 1')
		sub_num += 1
	print('1 - 1 = 0')
	for i in range(1, sub_num - 1):
		print('1 * 0 = 0')
	print('5 * 0 = 0')
	print('1 + 0 = 1')
	print('2 * 4 = 8' + '\n' + '3 * 8 = 24' + '\n' + '1 * 24 = 24', end='')


n = input()
n = int(n)
num_list = [i for i in range(1, n + 1)]
num_list = [str(i) for i in num_list]
exp_list1 = ['1 * 2 = 2', '2 * 3 = 6', '6 * 4 = 24']
exp_list2 = ['2 * 5 = 10', '10 - 3 = 7', '7 - 1 = 6', '6 * 4 = 24']
if n == 1:
	print('NO')
elif n == 2:
	print('NO')
elif n == 3:
	print('NO')
elif n == 4:
	print('YES')
	for exp in exp_list1:
		print(exp)
elif n == 5:
	print('YES')
	for exp in exp_list2:
		print(exp)
elif n > 5:
	if (n - 4) % 2 == 0:
		print('YES')
		for i in range(int((n - 4) / 2)):
			str = ''
			str = num_list[-1] + ' - ' + num_list[-2] + ' = 1'
			exp_list1.append(str)
			num_list.pop()
			num_list.pop()
			exp_list1.append('24 * 1 = 24')
		for exp in exp_list1:
			print(exp)
	else:
		print('YES')
		for i in range(int((n - 5) / 2)):
			str = ''
			str = num_list[-1] + ' - ' + num_list[-2] + ' = 1'
			exp_list2.append(str)
			num_list.pop()
			num_list.pop()
			exp_list2.append('24 * 1 = 24')
		for exp in exp_list2:
			print(exp)


import sys
n = int(input())
if 6 <= n:
	print('YES')
	print('6 * 4 = 24')
	print('3 - 2 = 1')
	print('1 - 1 = 0')
	print('0 * 5 = 0')
	for i in range(7, n + 1):
		print('0 * ' + str(i) + ' = 0')
	print('0 + 24 = 24')
	sys.exit(0)
if 5 == n:
	print('YES')
	print('5 + 1 = 6')
	print('6 * 4 = 24')
	print('3 - 2 = 1')
	print('24 * 1 = 24')
	sys.exit(0)
if 4 == n:
	print('YES')
	print('1 + 2 = 3')
	print('3 + 3 = 6')
	print('6 * 4 = 24')
	sys.exit(0)
print('NO')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	while n > 5:
		print(n, '-', n - 1, '= 1')
		print('1 * 1 = 1')
		n -= 2
	if n == 4:
		print('3 * 4 = 12')
		print('12 * 2 = 24')
		print('24 * 1 = 24')
	else:
		print('5 * 4 = 20')
		print('20 + 3 = 23')
		print('23 + 2 = 25')
		print('25 - 1 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n == 4:
		print('4 * 3 = 12\n12 * 2 = 24\n24 * 1 =24')
	elif n == 5:
		print('5 * 4 = 20\n20 + 3 = 23\n23 + 2 = 25\n25 - 1 = 24')
	else:
		print('4 * 3 = 12\n12 * 2 = 24\n' + str(n) + ' - ' + str(n - 1) + ' = 1\n1 - 1 = 0')
		for i in range(5, n - 1):
			print(str(i) + ' * 0 = 0')
		print('24 + 0 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	while n > 5:
		a = str(n)
		b = str(n - 1)
		print(a + ' - ' + b + ' = 1 ')
		print('1 * 1 = 1')
		n -= 2
	if n == 4:
		print('4 * 3 = 12\n12 * 2 = 24\n24 * 1 = 24')
	else:
		print('5 - 2 = 3\n3 - 1 = 2\n2 * 3 = 6\n6 * 4 = 24')


n = int(input())
if n < 4:
	print('NO')
elif n == 5:
	print('YES')
	print('5 - 3 = 2')
	print('1 + 2 = 3')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
else:
	print('YES')
	if n != 4:
		print('5 - 6 = -1')
		print('1 + -1 = 0')
	for i in range(7, n + 1):
		print(i, '* 0 = 0')
	if n != 4:
		print('4 + 0 = 4')
	else:
		print('4 * 1 = 4')
	print('2 * 3 = 6')
	print('6 * 4 = 24')


import sys

def fastio():
	from io import StringIO
	from atexit import register
	global input
	sys.stdin = StringIO(sys.stdin.read())
	input = lambda : sys.stdin.readline().rstrip('\r\n')
	sys.stdout = StringIO()
	register(lambda : sys.__stdout__.write(sys.stdout.getvalue()))
fastio()

def debug(*var, sep=' ', end='\n'):
	print(*var, file=sys.stderr, end=end, sep=sep)
INF = 10 ** 20
MOD = 10 ** 9 + 7
I = lambda : list(map(int, input().split()))
from math import gcd
from math import ceil
from collections import defaultdict as dd, Counter
from bisect import bisect_left as bl, bisect_right as br
(n,) = I()
if n <= 3:
	print('NO')
	exit()
print('YES')
if n % 2:
	print('1 + 2 = 3')
	print('5 - 3 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
	for i in range(7, n + 1, 2):
		print(i, '-', i - 1, '=', 1)
		print(24, '*', 1, '=', 24)
else:
	print('1 * 2 = 2')
	print('3 * 4 = 12')
	print('2 * 12 = 24')
	for i in range(6, n + 1, 2):
		print(i, '-', i - 1, '=', 1)
		print(24, '*', 1, '=', 24)


def cal(sn, basen):
	d_add = []
	for i in range((sn - basen) // 2):
		bf = basen + 2 * i + 2
		af = basen + 2 * i + 1
		d_add.append(str(bf) + ' - ' + str(af) + ' = 1')
	d_a = '\n1 * 24 = 24\n'.join(d_add)
	return d_a

def main():
	n = int(input())
	if n <= 3 and n >= 1:
		result = 'NO'
		print(result)
	elif 4 <= n <= 100000:
		result = 'YES'
		n1 = '2 * 4 = 8\n3 * 8 = 24\n1 * 24 = 24'
		n2 = '1 * 2 = 2\n3 + 4 = 7\n7 + 5 = 12\n12 * 2 = 24'
		if n % 2 == 0:
			if n == 4:
				print(result + '\n' + n1)
			if n > 4:
				n1 = n1 + '\n'
				d = n1 + cal(n, 4) + '\n1 * 24 = 24'
				print(result + '\n' + d)
		else:
			if n == 5:
				print(result + '\n' + n2)
			if n > 5:
				n2 = n2 + '\n'
				d = n2 + cal(n, 5) + '\n1 * 24 = 24'
				print(result + '\n' + d)
main()


n = int(input())

def p(lista):
	if lista == []:
		return
	while lista != []:
		a = lista.pop()
		b = lista.pop()
		if a > b:
			print(str(a) + ' - ' + str(b) + ' = 1')
		else:
			print(str(b) + ' - ' + str(a) + ' = 1')
		print('1 * 24 = 24')
if n <= 3:
	print('NO')
else:
	print('YES')
	lista = list(range(1, n + 1))
	if n % 2 == 0:
		print('1 * 2 = 2')
		print('3 * 2 = 6')
		print('6 * 4 = 24')
		p(lista[4:])
	else:
		print('5 - 3 = 2')
		print('4 * 2 = 8')
		print('1 + 2 = 3')
		print('8 * 3 = 24')
		p(lista[5:])


n = int(input())
if n < 4:
	print('NO')
	exit()
print('YES')
if n == 4:
	print('2 * 4 = 8')
	print('3 * 8 = 24')
	print('1 * 24 = 24')
	exit()
if n == 5:
	print('5 - 2 = 3')
	print('3 + 3 = 6')
	print('4 * 6 = 24')
	print('1 * 24 = 24')
	exit()
if n % 2 == 0:
	for i in range(n, 4, -2):
		print('{} - {} = 1'.format(i, i - 1))
	for i in range(0, (n - 4) // 2 - 1):
		print('{} * {} = 1'.format(1, 1))
	print('2 * 1 = 2')
	print('2 * 4 = 8')
	print('3 * 8 = 24')
	print('1 * 24 = 24')
	exit()
else:
	for i in range(n, 5, -2):
		print('{} - {} = 1'.format(i, i - 1))
	for i in range(0, (n - 5) // 2 - 1):
		print('{} * {} = 1'.format(1, 1))
	print('5 * 1 = 5')
	print('5 - 2 = 3')
	print('3 + 3 = 6')
	print('4 * 6 = 24')
	print('1 * 24 = 24')
	exit()


def main():
	n = int(input())
	if n < 4:
		print('NO')
		return
	print('YES')
	n -= 4
	l = [('1 + 2 = 3\n3 + 3 = 6\n6 * 4 = 24', '1 + 4 = 5\n5 + 5 = 10\n10 - 2 = 8\n8 * 3 = 24')[n % 2]]
	for x in range(n % 2, n, 2):
		l.append(' '.join((str(x + 6), '-', str(x + 5), '= 1\n24 * 1 = 24')))
	print('\n'.join(l))
main()


numInts = int(input().strip())
if numInts < 4:
	print('NO')
else:
	print('YES')
	if numInts == 4:
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
	elif numInts == 5:
		print('5 - 2 = 3')
		print('3 - 1 = 2')
		print('3 * 4 = 12')
		print('12 * 2 = 24')
	else:
		print('3 - 2 = 1')
		print('1 - 1 = 0')
		print('4 * 6 = 24')
		print('5 * 0 = 0')
		for x in range(7, numInts + 1):
			print(str(x) + ' * 0 = 0')
		print('24 + 0 = 24')


from math import inf as inf
from math import *
from collections import *
import sys
from itertools import permutations
input = sys.stdin.readline
t = 1
while t:
	t -= 1
	n = int(input())
	if n < 4:
		print('NO')
		exit(0)
	print('YES')
	if n % 2:
		print('5 - 2 = 3')
		print('3 - 1 = 2')
		print('2 * 3 = 6')
		print('4 * 6 = 24')
		for i in range(6, n + 1, 2):
			print(i + 1, '-', i, '=', 1)
			print('24 * 1 = 24')
	else:
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('4 * 6 = 24')
		for i in range(5, n + 1, 2):
			print(i + 1, '-', i, '=', 1)
			print('24 * 1 = 24')


def game():
	n = int(input())
	if n < 4:
		print('NO')
		return
	print('YES')
	while n > 5:
		a = n
		b = n - 1
		c = a - b
		print('%d - %d = %d' % (a, b, c))
		n -= 2
		print('%d * %d = %d' % (n, c, n * c))
	if n == 4:
		print('2 * 3 = 6\n' + '4 * 6 = 24\n' + '24 * 1 = 24')
	elif n == 5:
		print('2 - 1 =1\n' + '3 + 1 = 4\n' + '4 * 5 = 20\n' + '20 + 4 = 24')
game()


import sys
input = sys.stdin.readline

def solve():
	n = int(input())
	if n < 4:
		print('NO')
	elif n % 2 == 0:
		print('YES')
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(5, n + 1, 2):
			print(i + 1, '-', i, '= 1')
			print('24 * 1 = 24')
	else:
		print('YES')
		print('3 - 2 = 1')
		print('5 + 1 = 6')
		print('4 * 6 = 24')
		print('24 * 1 = 24')
		for i in range(6, n + 1, 2):
			print(i + 1, '-', i, '= 1')
			print('24 * 1 = 24')
solve()


n = int(input())
if n < 4:
	print('NO')
else:
	res = 'YES\n'
	counter = (n - 4) // 2 if n % 2 == 0 else (n - 5) // 2
	while n > 5:
		res += str(n) + ' - ' + str(n - 1) + ' =  1\n'
		n -= 2
	for i in range(counter - 1):
		res += '1 * 1 = 1\n'
	if n == 5:
		res += '5 * 4 = 20\n'
		res += '3 - 1 = 2\n'
		res += '2 * 2 = 4\n'
		res += '20 + 4 = 24\n'
	else:
		res += '4 * 3 = 12\n'
		res += '12 * 2 = 24\n'
		res += '24 * 1 = 24\n'
	res += '24 * 1 = 24' if counter != 0 else ''
	print(res)


n = int(input())
if n <= 3:
	print('NO')
elif n == 4:
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
else:
	print('YES')
	if n % 2 == 0:
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(5, n, 2):
			a = i + 1
			b = i
			print(str(i + 1) + ' - ' + str(i) + ' = 1')
			print('24 * 1 = 24')
	elif n % 2 != 0:
		print('5 - 3 = 2')
		print('2 * 4 = 8')
		print('2 + 1 = 3')
		print('8 * 3 = 24')
		for i in range(6, n, 2):
			a = i + 1
			b = i
			print(str(i + 1) + ' - ' + str(i) + ' = 1')
			print('24 * 1 = 24')


n = int(input())
num = [i for i in range(2, n + 1)]
if n in [1, 2, 3]:
	print('NO')
	exit()
print('YES')
ones = 0
if n % 2 == 0:
	ones += 1
	while num[-1] != 4 and num[-2] != 3:
		print(num[-1], '-', num[-2], '=', 1)
		num.pop()
		num.pop()
		ones += 1
	print(4, '*', 3, '=', 12)
	print(12, '*', 2, '=', 24)
else:
	while num[-1] != 5 and num[-2] != 4:
		print(num[-1], '-', num[-2], '=', 1)
		num.pop()
		num.pop()
		ones += 1
	print(5, '-', 3, '=', 2)
	print(2, '*', 4, '=', 8)
	print(1, '+', 2, '=', 3)
	print(8, '*', 3, '=', 24)
while ones != 0:
	print(24, '*', 1, '=', 24)
	ones -= 1


def add(a, b):
	print(str(a) + ' + ' + str(b) + ' = ' + str(a + b))

def mul(a, b):
	print(str(a) + ' * ' + str(b) + ' = ' + str(a * b))

def sub(a, b):
	print(str(a) + ' - ' + str(b) + ' = ' + str(a - b))
n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	k = 5
	yeah = True
	if (n - 4) % 2 == 1:
		k = 6
		yeah = False
	while k < n:
		sub(k + 1, k)
		mul(1, 1)
		k += 2
	if yeah:
		mul(4, 3)
		mul(12, 2)
		mul(24, 1)
	else:
		mul(5, 4)
		sub(3, 1)
		add(2, 2)
		add(20, 4)


n = int(input())
if n <= 3:
	print('NO')
elif n % 2 == 0:
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('4 * 6 = 24')
	for x in range(5, n, 2):
		print(x + 1, '-', x, '=', '1')
		print('24 * 1 = 24')
else:
	print('YES')
	print('2 - 1 = 1')
	print('1 + 3 = 4')
	print('4 * 5 = 20')
	print('4 + 20 = 24')
	for x in range(6, n, 2):
		print(x + 1, '-', x, '=', '1')
		print('24 * 1 = 24')


def main():
	n = int(input())
	if n < 4:
		print('NO')
	else:
		print('YES')
		if n == 4:
			print('2 * 4 = 8')
			print('3 * 8 = 24')
			print('1 * 24 = 24')
		elif n == 5:
			print('3 * 5 = 15')
			print('2 * 4 = 8')
			print('1 + 8 = 9')
			print('9 + 15 = 24')
		else:
			print('1 + 2 = 3')
			print('3 - 3 = 0')
			print('0 * 5 = 0')
			iC = 7
			while iC <= n:
				print(iC, ' * 0 = 0')
				iC += 1
			print('0 + 4 = 4')
			print('4 * 6 = 24')
main()


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 1:
		for i in range(6, n, 2):
			print('%d - %d = 1' % (i + 1, i))
		for i in range(0, n - 5, 2):
			print('1 * 1 = 1')
		print('2 + 4 = 6')
		print('3 * 6 = 18')
		print('18 + 5 = 23')
		print('23 + 1 = 24')
	else:
		for i in range(5, n, 2):
			print('%d - %d = 1' % (i + 1, i))
		for i in range(0, n - 4, 2):
			print('1 * 1 = 1')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		print('24 * 1 = 24')


def main():
	(n,) = read()
	if n < 4:
		print('NO')
		return
	if n % 2 == 0:
		print('YES')
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(5, n, 2):
			print(str(i + 1) + ' - ' + str(i) + ' = 1')
			print('24 * 1 = 24')
		return
	if n % 2 == 1:
		print('YES')
		print('1 * 2 = 2')
		print('3 + 4 = 7')
		print('7 + 5 = 12')
		print('2 * 12 = 24')
		for i in range(6, n, 2):
			print(str(i + 1) + ' - ' + str(i) + ' = 1')
			print('24 * 1 = 24')
		return

def read(mode=2):
	inputs = input().strip()
	if mode == 0:
		return inputs
	if mode == 1:
		return inputs.split()
	if mode == 2:
		return list(map(int, inputs.split()))

def write(s='\n'):
	if s is None:
		s = ''
	if isinstance(s, list):
		s = ' '.join(map(str, s))
	s = str(s)
	print(s, end='')
write(main())


a = int(input())
if a <= 3:
	print('NO')
elif a % 2 == 0:
	print('YES')
	print('4 * 3 = 12')
	print('12 * 2 = 24')
	print('24 * 1 = 24')
	for i in range(6, a + 1, 2):
		print(str(i), '-', str(i - 1), '= 1')
		print('24 * 1 = 24')
elif a % 2 == 1:
	print('YES')
	print('4 - 2 = 2')
	print('2 + 1 = 3')
	print('3 + 5 = 8')
	print('3 * 8 = 24')
	for i in range(7, a + 1, 2):
		print(str(i), '-', str(i - 1), '= 1')
		print('24 * 1 = 24')


n = int(input())
if n < 4:
	result = 'NO'
	print(result)
elif n >= 4:
	result = 'YES'
	print(result)
	if n % 2 == 0:
		print('2 * 4 = 8')
		print('3 * 8 = 24')
		print('1 * 24 = 24')
		for i in range(4, n, 2):
			print(str(i + 2) + ' - ' + str(i + 1) + ' = ' + str(1))
			print('1 * 24 = 24')
	else:
		print('5 - 2 = 3')
		print('1 + 3 = 4')
		print('4 + 4 = 8')
		print('3 * 8 = 24')
		for i in range(5, n, 2):
			print(str(i + 2) + ' - ' + str(i + 1) + ' = ' + str(1))
			print('1 * 24 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	l4 = ['2 * 4 = 8 ', '3 * 8 = 24', '1 * 24 = 24 ']
	l5 = ['1 * 2 = 2 ', '3 + 4 = 7 ', '5 + 7 = 12 ', '2 * 12 = 24 ']
	if n % 2 == 0:
		for c in l4:
			print(c)
	else:
		for c in l5:
			print(c)
	while True:
		if n == 4 or n == 5:
			break
		print(str(n) + ' - ' + str(n - 1) + ' = 1 ')
		print('1 * 24 = 24 ')
		n -= 2


from typing import Counter
import sys
from collections import defaultdict as dd
from math import *

def vinp():
	return map(int, input().split())

def linp():
	return list(map(int, input().split()))

def sinp():
	return input()

def inp():
	return int(input())

def mod(f):
	return f % 1000000007

def pr(*x):
	print(*x)

def finp():
	f = open('input.txt', 'r')
	f = f.read().split('\n')
	return f

def finp():
	f = open('input.txt', 'r')
	f = f.read().split('\n')
	return f

def fout():
	return open('output.txt', 'w')

def fpr(f, x):
	f.write(x + '\n')

def csort(c):
	sorted(c.items(), key=lambda pair: pair[1], reverse=True)

def indc(l, n):
	c = {}
	for i in range(n):
		c[l[i]] = c.get(l[i], []) + [i + 1]
	return c
n = inp()
if n > 3:
	co = 0
	if n % 2 == 0:
		pr('YES')
		for i in range(n, 4, -2):
			pr(f'{i} - {i - 1} = 1')
			co += 1
		pr('4 * 3 =12')
		pr('12 * 2 = 24')
		pr('24 * 1 = 24')
		for i in range(co):
			pr(f'24 * 1 = 24')
	else:
		pr('YES')
		for i in range(n, 5, -2):
			pr(f'{i} - {i - 1} = 1')
			co += 1
		pr('5 * 3 = 15')
		pr('4 * 2 = 8')
		pr('15 + 8 = 23')
		pr('23 + 1 = 24')
		for i in range(co):
			pr(f'24 * 1 = 24')
else:
	pr('NO')


n = int(input())
if n < 4:
	print('NO')
else:
	l = []
	l.append('1 * 2 = 2')
	l.append('2 * 3 = 6')
	l.append('6 * 4 = 24')
	p = []
	p.append('5 * 4 = 20')
	p.append('20 + 2 = 22')
	p.append('22 + 3 = 25')
	p.append('25 - 1 = 24')
	for i in range(6, n + 1):
		k = str(i) + ' ' + '-' + ' ' + str(i - 1) + ' ' + '=' + ' ' + '1'
		t = '24' + ' ' + '*' + ' ' + '1' + ' ' + '=' + ' ' + '24'
		if i % 2 == 0:
			l.append(k)
			l.append(t)
		else:
			p.append(k)
			p.append(t)
	print('YES')
	if n % 2 == 0:
		for i in l:
			print(i)
	else:
		for i in p:
			print(i)


a = int(input())
if a < 4:
	print('NO')
else:
	print('YES')
	if a % 2 == 0:
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(5, a + 1, 2):
			print(i + 1, '-', i, '=', 1)
		for i in range(5, a + 1, 2):
			print('24 * 1 = 24')
	else:
		print('2 + 3 = 5')
		print('5 - 1 = 4')
		print('5 * 4 = 20')
		print('20 + 4 = 24')
		for i in range(6, a + 1, 2):
			print(i + 1, '-', i, '=', 1)
			print('24 * 1 = 24')


n = int(input())
if n >= 4:
	print('YES')
	if n % 2 == 0:
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		m = (n - 4) // 2
		for i in range(m):
			print(str(4 + 2 * i + 2) + ' - ' + str(4 + 2 * i + 1) + ' = 1')
			print('24 * 1 = 24')
	else:
		print('3 - 1 = 2')
		print('5 - 2 = 3')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		m = (n - 5) // 2
		for i in range(m):
			print(str(5 + 2 * i + 2) + ' - ' + str(5 + 2 * i + 1) + ' = 1')
			print('24 * 1 = 24')
else:
	print('NO')


from sys import maxsize, stdout, stdin, stderr
mod = int(1000000000.0 + 7)
import sys

def I():
	return int(stdin.readline())

def lint():
	return [int(x) for x in stdin.readline().split()]

def S():
	return list(map(str, input().strip()))

def grid(r, c):
	return [lint() for i in range(r)]
from collections import defaultdict, Counter, deque
import math
import heapq
from heapq import heappop, heappush
import bisect
from itertools import groupby
from itertools import permutations as comb

def gcd(a, b):
	while b:
		a %= b
		tmp = a
		a = b
		b = tmp
	return a

def lcm(a, b):
	return a // gcd(a, b) * b

def check_prime(n):
	for i in range(2, int(n ** (1 / 2)) + 1):
		if not n % i:
			return False
	return True

def nCr(n, r):
	return fact(n) // (fact(r) * fact(n - r))

def fact(n):
	res = 1
	for i in range(2, n + 1):
		res = res * i
	return res

def primefactors(n):
	num = 0
	while n % 2 == 0:
		num += 1
		n = n / 2
	for i in range(3, int(math.sqrt(n)) + 1, 2):
		while n % i == 0:
			num += 1
			n = n // i
	if n > 2:
		num += 1
	return num

def ask(a):
	print('? {}'.format(a), flush=True)
	n = I()
	return n

def dfs(i, p):
	(a, tmp) = (0, 0)
	for j in d[i]:
		if j != p:
			a += 1
			tmp += dfs(j, i)
	if a == 0:
		return 0
	return tmp / a + 1

def primeFactors(n):
	l = []
	while n % 2 == 0:
		l.append(2)
		n = n // 2
	if n > 2:
		l.append(n)
	return l
n = I()
if n <= 3:
	print('NO')
elif n % 2 == 0:
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
	for i in range(5, n, 2):
		print(i + 1, '-', i, '=', 1)
		print('24 * 1 = 24')
else:
	print('YES')
	print('2 - 1 = 1')
	print('1 + 3 = 4')
	print('5 * 4 = 20')
	print('4 + 20 = 24')
	for i in range(6, n, 2):
		print(i + 1, '-', i, '=', 1)
		print('24 * 1 = 24')


n = int(input())
if n <= 3:
	print('NO')
if n == 4:
	print('YES\n3 * 4 = 12\n2 * 1 = 2\n12 * 2 = 24')
if n == 5:
	print('YES\n4 * 5 = 20\n20 + 2 = 22\n22 + 3 = 25\n25 - 1 = 24')
if n == 6:
	print('YES\n6 - 5 = 1\n3 * 4 = 12\n2 * 1 = 2\n12 * 2 = 24\n1 * 24 = 24')
if n == 7:
	print('YES\n7 - 6 = 1\n4 * 5 = 20\n20 + 2 = 22\n22 + 3 = 25\n25 - 1 = 24\n1 * 24 = 24')
if n == 8:
	print('YES')
	print('%d - %d = 1\n%d - %d = 1' % (n, n - 1, n - 2, n - 3))
	print('1 - 1 = 0')
	print('3 * 4 = 12\n2 * 1 = 2\n12 * 2 = 24\n0 + 24 = 24')
if n > 8:
	print('YES')
	print('%d - %d = 1\n%d - %d = 1' % (n, n - 1, n - 2, n - 3))
	print('1 - 1 = 0')
	i = n - 4
	while i > 4:
		print('%d * 0 = 0' % i)
		i -= 1
	print('3 * 4 = 12\n2 * 1 = 2\n12 * 2 = 24\n0 + 24 = 24')


n = int(input())
if n > 3:
	print('YES')
	if n % 2:
		for i in range(6, n, 2):
			print(i + 1, ' - ', i, ' = ', 1)
		print('5 - 1 = 4\n4 - 2 = 2')
		print('4 * 3 = 12\n12 * 2 = 24')
	else:
		print('4 * 3 = 12\n12 * 2 = 24')
		for i in range(5, n, 2):
			print(i + 1, ' - ', i, ' = ', 1)
		print('24 * 1 = 24')
	for i in range((n - 4) // 2):
		print('24 * 1 = 24')
else:
	print('NO')


n = int(input())
if 0 < n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 0:
		print('2 * 4 = 8')
		print('3 * 8 = 24')
		print('1 * 24 = 24')
		while n > 4:
			print(str(n) + ' - ' + str(n - 1) + ' = 1')
			print('1 * 24 = 24')
			n = n - 2
	else:
		print('3 + 5 = 8')
		print('8 - 2 = 6')
		print('6 * 4 = 24')
		print('1 * 24 = 24')
		while n > 5:
			print(str(n) + ' - ' + str(n - 1) + ' = 1')
			print('1 * 24 = 24')
			n = n - 2


A = int(input())
ans = 'YES\n1 * 2 = 2\n3 * 4 = 12'
if A >= 5:
	if A % 2:
		ans = 'YES\n5 - 3 = 2\n2 * 4 = 8\n1 + 2 = 3\n8 * 3 = 24'
		for a in range(int(A / 2 - 5 / 2)):
			ans += '\n%d - %d = 1' % (2 * a + 7, 2 * a + 6)
			ans += '\n1 * 24 = 24'
	else:
		ans += '\n2 * 12 = 24'
		for a in range(int(A / 2 - 6 / 2) + 1):
			ans += '\n%d - %d = 1' % (2 * a + 6, 2 * a + 5)
			ans += '\n1 * 24 = 24'
elif A <= 3:
	ans = 'NO'
else:
	ans += '\n12 * 2 = 24'
print(ans)


def solve3():
	print('NO')

def solve4():
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')

def solve5():
	print('YES')
	print('5 - 3 = 2')
	print('2 + 1 = 3')
	print('3 * 2 = 6')
	print('6 * 4 = 24')
n = int(input())
if n < 4:
	solve3()
elif n % 2:
	solve5()
	for i in range((n - 4) // 2):
		print('%d - %d = 1' % (n - 2 * i, n - 2 * i - 1))
	for i in range((n - 4) // 2 - 1):
		print('1 * 1 = 1')
	if n != 5:
		print('1 * 24 = 24')
else:
	solve4()
	for i in range((n - 4) // 2):
		print('%d - %d = 1' % (n - 2 * i, n - 2 * i - 1))
	for i in range((n - 4) // 2 - 1):
		print('1 * 1 = 1')
	if n != 4:
		print('1 * 24 = 24')


n = int(input())
if n < 4:
	print('NO')
if n == 4:
	print('YES')
	print('4 * 3 = 12')
	print('12 * 2 = 24')
	print('24 * 1 = 24')
if n == 5:
	print('YES')
	print('5 * 4 = 20')
	print('2 - 1 = 1')
	print('1 + 3 = 4')
	print('20 + 4 = 24')
if n > 5:
	print('YES')
	print('{} - {} = 1'.format(n, n - 1))
	print('1 - 1 = 0')
	for i in reversed(range(5, n - 1)):
		print('0 * {} = 0'.format(i))
	print('4 * 3 = 12')
	print('12 * 2 = 24')
	print('24 + 0 = 24')


def main():
	n = int(input())
	if n < 4:
		print('NO')
		return
	print('YES')
	if n % 2 == 0:
		print('3 * 4 = 12')
		print('12 * 2 = 24')
		print('24 * 1 = 24')
		for x in range(5, n, 2):
			print('%d - %d = 1' % (x + 1, x))
			print('24 * 1 = 24')
			pass
		return
		pass
	print('5 + 3 = 8')
	print('2 - 1 = 1')
	print('4 - 1 = 3')
	print('8 * 3 = 24')
	for x in range(6, n, 2):
		print('%d - %d = 1' % (x + 1, x))
		print('24 * 1 = 24')
		pass
	pass
main()


n = int(input())
print('YES' if n >= 4 else 'NO')
if n == 4:
	print('4 * 3 = 12')
	print('12 * 2 = 24')
	print('24 * 1 = 24')
elif n == 5:
	print('5 * 4 = 20')
	print('20 + 3 = 23')
	print('23 + 2 = 25')
	print('25 - 1 = 24')
elif n >= 6:
	print('1 + 2 = 3')
	print('3 - 3 = 0')
	print('4 * 6 = 24')
	print('5 * 0 = 0')
	for i in range(7, n + 1):
		print(i, '* 0 = 0')
	print('24 + 0 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 0:
		print('2 * 3 = 6\n6 * 4 = 24\n24 * 1 = 24')
		for i in range(6, n + 1, 2):
			print(str(i) + ' - ' + str(i - 1) + ' = 1\n24 * 1 = 24')
	else:
		print('5 * 4 = 20\n3 - 1 = 2\n20 + 2 = 22\n22 + 2 = 24')
		for i in range(7, n + 1, 2):
			print(str(i) + ' - ' + str(i - 1) + ' = 1\n24 * 1 = 24')


n = int(input())
if n <= 3:
	print('NO')
else:
	print('YES')
	if n == 5:
		print('5 - 2 = 3\n3 - 1 = 2\n4 * 3 = 12\n12 * 2 = 24')
	else:
		print('4 * 3 = 12\n12 * 2 = 24')
		if n >= 6:
			print('6 - 5 = 1\n1 - 1 = 0')
			i = 7
			while i < n + 1:
				print(i, '* 0 = 0')
				i += 1
			print('24 + 0 = 24\n')
		elif n == 4:
			print('24 * 1 = 24\n')


from math import ceil
from math import floor
from math import sqrt
from math import log
prime = pow(10, 9) + 7

def mod_expo(n, p, m):
	result = 1
	while p != 0:
		if p % 2 == 1:
			result = result * n % m
		p //= 2
		n = n * n % m
	return result

def find_sequences(n):
	result = []
	if n <= 3:
		return result
	while n > 5:
		result.append('24 * 1 = 24')
		result.append(str(n) + ' - ' + str(n - 1) + ' = 1')
		n -= 2
	result.reverse()
	if n == 4:
		result.insert(0, '1 + 2 = 3')
		result.insert(1, '3 + 3 = 6')
		result.insert(2, '4 * 6 = 24')
	elif n == 5:
		result.insert(0, '1 + 4 = 5')
		result.insert(1, '5 * 5 = 25')
		result.insert(2, '25 - 3 = 22')
		result.insert(3, '22 + 2 = 24')
	return result

def check(n, k):
	v = 0
	left = n
	while left > 0:
		current = min(left, k)
		v += current
		left -= current
		left -= left // 10
	return 2 * v >= n

def get_pair_count(n, arr):
	count = 0
	mp = {}
	for i in range(n):
		if arr[i] not in mp:
			mp[arr[i]] = 0
		mp[arr[i]] += 1
	for i in range(n):
		for deg in range(1, 31):
			val = pow(2, deg) - arr[i]
			if val in mp:
				count += mp[val]
				if val == arr[i]:
					count -= 1
		mp[arr[i]] -= 1
	return count

def find_bsearch(n):
	left = 1
	right = n
	middle = 0
	if n <= 2:
		return 1
	while left < right:
		middle = left + (right - left) // 2
		if check(n, middle):
			if middle == left or not check(n, middle - 1):
				return middle
			right = middle - 1
		else:
			left = middle + 1
	return left

def find_divisors(x):
	divisors = []
	for i in range(2, int(sqrt(x)) + 1):
		if x % i == 0:
			if x == i * i:
				divisors.append(i)
			else:
				divisors.append(i)
				divisors.append(int(x / i))
	return divisors

def find_min(N, d):
	N = str(N)
	d = str(d)
	for i in range(len(N) - 1, -1):
		print(N[i])
		if int(N[i]) > int(d):
			N = ''.join([N[j] for j in range(len(N)) and j != i])
			N += d
	return N
t = 1
while t:
	t = t - 1
	count = 0
	n = int(input())
	answers = find_sequences(n)
	if len(answers):
		print('YES')
		for answer in answers:
			print(answer)
	else:
		print('NO')


n = int(input())
if n <= 3:
	exit(print('NO'))
if n % 2:
	print('YES\n5 + 1 = 6\n6 - 3 = 3\n2 * 4 = 8\n8 * 3 = 24')
	for i in range(6, n, 2):
		print(i + 1, '-', i, '=', 1)
		print('24 * 1 = 24')
else:
	print('YES\n2 * 3 = 6\n6 * 4 = 24\n24 * 1 = 24')
	for i in range(5, n, 2):
		print(i + 1, '-', i, '=', 1)
		print('24 * 1 = 24')


def main():
	n = int(input())
	if n < 4:
		print('NO')
		return
	print('YES')
	n -= 4
	l = [('1 + 2 = 3\n3 + 3 = 6\n6 * 4 = 24', '1 + 4 = 5\n5 + 5 = 10\n10 - 2 = 8\n8 * 3 = 24', '1 + 2 = 3\n3 + 4 = 7\n7 + 6 = 13\n13 - 5 = 8\n8 * 3 = 24', '1 + 3 = 4\n4 + 4 = 8\n8 + 5 = 13\n13 + 6 = 19\n19 + 7 = 26\n26 - 2 = 24')[n % 4]]
	for x in range(n % 4 + 5, n + 5, 4):
		l.append(' '.join((str(x + 3), '-', str(x + 2), '= 1')))
		l.append(' '.join((str(x + 1), '-', str(x), '= 1')))
		l.append('1 - 1 = 0\n24 + 0 = 24')
	print('\n'.join(l))
main()


n = int(input())
if n <= 3:
	print('NO')
	exit()
print('YES')
if n % 2 == 0:
	print('%s * %s = %s' % (1, 2, 2))
	print('%s * %s = %s' % (2, 3, 6))
	print('%s * %s = %s' % (6, 4, 24))
	for i in range(6, n + 1, 2):
		print('%s - %s = 1' % (i, i - 1))
		print('%s * %s = %s' % (1, 24, 24))
else:
	print('2 * 4 = 8')
	print('3 * 5 = 15')
	print('1 + 8 = 9')
	print('9 + 15 = 24')
	for i in range(7, n + 1, 2):
		print('%s - %s = 1' % (i, i - 1))
		print('%s * %s = %s' % (1, 24, 24))


a = int(input())
if a < 4:
	print('NO')
elif a == 4:
	print('YES\n4 * 3 = 12\n12 * 2 = 24\n24 * 1 = 24')
elif a == 5:
	print('YES\n5 * 4 = 20\n20 + 3 = 23\n23 + 2 = 25\n25 - 1 = 24')
elif a == 6:
	print('YES\n6 * 5 = 30\n30 - 4 = 26\n26 - 3 = 23\n23 + 2 = 25\n25 - 1 = 24')
elif a == 7:
	print('YES\n7 * 6 = 42\n5 * 4 = 20\n42 - 20 = 22\n22 + 3 = 25\n25 - 2 = 23\n23 + 1 = 24')
else:
	print('YES\n5 + 8 = 13\n6 + 7 = 13\n13 - 13 = 0')
	for i in range(9, a + 1):
		print('0 * %d = 0' % i)
	print('4 * 3 = 12\n12 * 2 = 24\n24 * 1 = 24\n24 + 0 = 24')


def logs(n):
	if n == 4:
		return [(1, 1, 2), (1, 2, 3), (1, 6, 4)]
	if n == 5:
		return [(2, 5, 4), (2, 9, 3), (1, 12, 2), (1, 24, 1)]
	ans = [(3, i + 1, i) for i in range(n - 1, 4, -2)]
	ans.extend(logs(4 + n % 2))
	ans += [(1, 24, 1) for i in range(n - 1 - len(ans))]
	return ans
n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	for note in logs(n):
		if note[0] == 1:
			print('{0} * {1} = {2}'.format(note[1], note[2], note[1] * note[2]))
		elif note[0] == 2:
			print('{0} + {1} = {2}'.format(note[1], note[2], note[1] + note[2]))
		else:
			print('{0} - {1} = {2}'.format(note[1], note[2], note[1] - note[2]))


import math

def getFirstSetBitPos(n):
	return math.log2(n & -n) + 1

def find_div(x):
	ls = []
	for i in range(2, int(x ** 0.5) + 1):
		if x % i == 0:
			ls.append(i)
			if i != x // i:
				ls.append(x // i)
	return sorted(ls)
dd = [(-1, 0), (1, 0), (0, 1), (0, -1), (-1, -1), (1, 1), (-1, 1), (1, -1)]

def multi_src_bfs():
	while q:
		tt = q.popleft()
		x = tt[0]
		y = tt[1]
		for i in dd:
			if x + i[0] >= 0 and x + i[0] < n and (y + i[1] >= 0) and (y + i[1] < m) and (vis[x + i[0]][y + i[1]] == -1):
				q.append((x + i[0], y + i[1]))
				vis[x + i[0]][y + i[1]] = vis[x][y] + 1
from collections import Counter
n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n == 4:
		print('1 * 2 =2')
		print('2 * 3 =6')
		print('6 * 4 =24')
	elif n == 5:
		print('5 - 2 = 3')
		print('3 - 1 = 2')
		print('3 * 4 = 12')
		print('12 * 2 = 24')
	else:
		print('6 - 5 = 1')
		print('1 - 1 = 0')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(7, n + 1):
			print(str(i) + ' * 0 = 0')
		print('24 + 0 = 24')


def main():
	n = int(input().strip())
	if n >= 4 and (n - 4) % 2 == 0:
		print('YES')
		odd = False
		p1 = 0
		m1 = 0
		for i in range(5, n + 1, 2):
			if odd:
				p1 += 1
				print('{} - {} = {}'.format(i + 1, i, 1))
			else:
				m1 += 1
				print('{} - {} = {}'.format(i, i + 1, -1))
			odd = not odd
		while p1 > 0 and m1 > 0:
			print('1 + -1 = 0')
			print('0 + 2 = 2')
			p1 -= 1
			m1 -= 1
		if p1 > 0:
			print('1 - 1 = 0')
			print('0 + 2 = 2')
		elif m1 > 0:
			print('1 + -1 = 0')
			print('0 + 2 = 2')
		else:
			print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		return
	if n >= 5 and (n - 5) % 2 == 0:
		print('YES')
		odd = False
		p1 = 0
		m1 = 0
		for i in range(6, n + 1, 2):
			if odd:
				p1 += 1
				print('{} - {} = {}'.format(i + 1, i, 1))
			else:
				m1 += 1
				print('{} - {} = {}'.format(i, i + 1, -1))
			odd = not odd
		while p1 > 0 and m1 > 0:
			print('1 + -1 = 0')
			print('0 + 2 = 2')
			p1 -= 1
			m1 -= 1
		if p1 > 0:
			print('1 - 1 = 0')
			print('0 + 2 = 2')
		elif m1 > 0:
			print('1 + -1 = 0')
			print('0 + 2 = 2')
		else:
			print('1 * 2 = 2')
		print('5 + 3 = 8')
		print('8 - 2 = 6')
		print('6 * 4 = 24')
		return
	print('NO')
main()


import sys
import math
n = int(sys.stdin.readline())
if n < 4:
	print('NO')
	exit()
print('YES')
for i in range(n, 5, -2):
	print(str(i) + ' - ' + str(i - 1) + ' = ' + str(1))
t = int(n / 2) - 2
k = int(t / 2)
if t % 2 != 0:
	k += 1
for i in range(k):
	print('1 - 1 = 0')
zero = k
while zero >= 1:
	for i in range(int(zero / 2)):
		print('0 - 0 = 0')
	j = zero
	zero = int(zero / 2)
	if j % 2 != 0 and j != 1:
		zero += 1
if n % 2 == 0:
	if t % 2 == 0:
		if n != 4:
			print('1 + 0 = 1')
		print('1 * 2 = 2')
	else:
		print('0 + 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
else:
	if t % 2 == 0:
		if n != 5:
			print('1 + 0 = 1')
		print('1 * 2 = 2')
	else:
		print('0 + 2 = 2')
	print('5 - 2 = 3')
	print('3 + 3 = 6')
	print('6 * 4 = 24')


I = lambda : int(input())
IL = lambda : list(map(int, input().split()))
n = I()
if n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 0:
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(5, n, 2):
			print('{} - {} = 1'.format(i + 1, i))
			print('24 * 1 = 24')
	else:
		print('5 - 3 = 2')
		print('2 + 1 = 3')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(6, n, 2):
			print('{} - {} = 1'.format(i + 1, i))
			print('24 * 1 = 24')


import sys

def printResult(n):
	if n >= 4:
		print('YES')
		if n % 2 == 0:
			print('2 * 4 = 8')
			print('3 * 8 = 24')
			print('1 * 24 = 24')
			for i in range(4, n, 2):
				print(str(i + 2) + ' - ' + str(i + 1) + ' = 1')
				print('24 * 1 = 24')
		else:
			print('3 * 5 = 15')
			print('2 * 4 = 8')
			print('8 + 1 = 9')
			print('9 + 15 = 24')
			for i in range(5, n, 2):
				print(str(i + 2) + ' - ' + str(i + 1) + ' = 1')
				print('24 * 1 = 24')
	else:
		print('NO')
num = int(sys.stdin.readline())
printResult(num)


num = int(input().strip())
if num <= 3:
	print('NO')
elif num % 2 == 0:
	print('YES')
	print('2 * 4 = 8')
	print('3 * 8 = 24')
	print('1 * 24 = 24')
	for i in range(4, num, 2):
		print('%d - %d = 1' % (i + 2, i + 1))
		print('24 * 1 = 24')
else:
	print('YES')
	print('5 - 2 = 3')
	print('3 - 1 = 2')
	print('3 * 4 = 12')
	print('12 * 2 = 24')
	for i in range(5, num, 2):
		print('%d - %d = 1' % (i + 2, i + 1))
		print('24 * 1 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n == 4:
		t = ['1 * 2 = 2', '2 * 3 = 6', '6 * 4 = 24']
	elif n == 5:
		t = ['2 - 1 = 1', '1 + 3 = 4', '4 * 5 = 20', '20 + 4 = 24']
	else:
		t = ['3 - 2 = 1', '1 - 1 = 0', '5 * 0 = 0', '6 * 4 = 24']
		t += [str(i) + ' * 0 = 0' for i in range(7, n + 1)]
		t.append('24 + 0 = 24')
	print('\n'.join(t))


n = int(input())
if n > 3:
	print('YES')
	if n & 1:
		print('1 + 2 = 3\n3 * 4 = 12\n5 - 3 = 2\n2 * 12 = 24')
		startNumber = 5
		for i in range((n - 5) // 2):
			startNumber += 2
			print(startNumber, ' - ', startNumber - 1, ' = 1')
			print('1 * 24 = 24')
	else:
		print('2 * 4 = 8\n3 * 8 = 24\n1 * 24 = 24')
		startNumber = 4
		for i in range((n - 4) // 2):
			startNumber += 2
			print(startNumber, ' - ', startNumber - 1, ' = 1')
			print('1 * 24 = 24')
else:
	print('NO')


ent = int(input())
if ent <= 3:
	print('NO')
elif ent % 2 == 0:
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
	for i in range(5, ent, 2):
		print(str(i + 1) + ' - ' + str(i) + ' = 1')
		print('24 * 1 = 24')
else:
	print('YES')
	print('2 - 1 = 1')
	print('1 + 3 = 4')
	print('4 * 5 = 20')
	print('20 + 4 = 24')
	for j in range(6, ent, 2):
		print(str(j + 1) + ' - ' + str(j) + ' = 1')
		print('24 * 1 = 24')


a = int(input())
if 0 < a < 4:
	print('NO')
else:
	print('YES')
	if a % 2 == 0:
		print('2 * 4 = 8')
		print('3 * 8 = 24')
		print('1 * 24 = 24')
		for i in range(4, a, 2):
			print(str(i + 2) + ' - ' + str(i + 1) + ' = ' + str(1))
			print('1 * 24 = 24')
	else:
		print('5 * 4 = 20')
		print('20 + 3 = 23')
		print('23 + 2 = 25')
		print('25 - 1 = 24')
		for i in range(5, a, 2):
			print(str(i + 2) + ' - ' + str(i + 1) + ' = ' + str(1))
			print('1 * 24 = 24')


n = int(input())
if n < 4:
	print('NO')
	exit(0)
print('YES')
if n % 2 == 0:
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
	if n == 4:
		exit(0)
	for i in range(5, n, 2):
		print(i + 1, '-', i, '=', 1)
	n1 = n - 4
	n1 = n1 // 2
	for i in range(n1 - 1):
		print('1 * 1 = 1')
	print('24 * 1 = 24')
else:
	print('5 * 4 = 20')
	print('20 + 3 = 23')
	print('2 - 1 = 1')
	print('23 + 1 = 24')
	if n == 5:
		exit(0)
	for i in range(6, n, 2):
		print(i + 1, '-', i, '=', 1)
	n1 = n - 5
	n1 = n1 // 2
	for i in range(n1 - 1):
		print('1 * 1 = 1')
	print('24 * 1 = 24')


while True:
	try:
		n = input()
		n = int(n)
		if n <= 3:
			print('NO')
		elif n == 4:
			print('YES\n3 * 4 = 12\n2 * 12 = 24\n1 * 24 = 24')
		elif n == 5:
			print('YES\n4 * 5 = 20\n3 + 20 = 23\n2 + 23 = 25\n25 - 1 = 24')
		elif n % 2 == 0:
			print('YES')
			while n != 4:
				print('%d - ' % n + '%d = 1' % (n - 1))
				n -= 2
				print('%d * 1 = ' % n + '%d' % n)
			print('3 * 4 = 12\n2 * 12 = 24\n1 * 24 = 24')
		else:
			print('YES')
			while n != 5:
				print('%d - ' % n + '%d = 1' % (n - 1))
				n -= 2
				print('%d * 1 = ' % n + '%d' % n)
			print('4 * 5 = 20\n3 + 20 = 23\n2 + 23 = 25\n25 - 1 = 24')
	except:
		break


import sys
P = '\n'
print = sys.stdout.write
n = int(input())
if n < 4:
	print('NO' + P)
elif n == 4:
	print('YES' + P)
	print('4' + ' * ' + '3' + ' = ' + str(12) + P)
	print('12' + ' * ' + '2' + ' = ' + '24' + P)
	print('24' + ' * ' + '1' + ' = ' + '24' + P)
elif n == 5:
	print('YES' + P)
	print('2' + ' - ' + '1' + ' = ' + '1' + P)
	print('5' + ' * ' + '4' + ' = ' + '20' + P)
	print('20' + ' + ' + '3' + ' = ' + '23' + P)
	print('23' + ' + ' + '1' + ' = ' + '24' + P)
else:
	count = 0
	print('YES' + P)
	temp = n
	if n & 1 != 0:
		while temp != 5:
			print(str(temp) + ' - ' + str(temp - 1) + ' = ' + '1' + P)
			count += 1
			temp -= 2
		for i in range(count - 1):
			print('1' + ' * ' + '1' + ' = ' + '1' + P)
		print('2' + ' - ' + '1' + ' = ' + '1' + P)
		print('1' + ' * ' + '1' + ' = ' + '1' + P)
		print('5' + ' * ' + '4' + ' = ' + '20' + P)
		print('20' + ' + ' + '3' + ' = ' + '23' + P)
		print('23' + ' + ' + '1' + ' = ' + '24' + P)
	else:
		while temp != 4:
			print(str(temp) + ' - ' + str(temp - 1) + ' = ' + '1' + P)
			count += 1
			temp -= 2
		for i in range(count - 1):
			print('1' + ' * ' + '1' + ' = ' + '1' + P)
		print('1' + ' * ' + '1' + ' = ' + '1' + P)
		print('4' + ' * ' + '3' + ' = ' + str(12) + P)
		print('12' + ' * ' + '2' + ' = ' + '24' + P)
		print('24' + ' * ' + '1' + ' = ' + '24' + P)


N = int(input())
if N == 1 or N == 2 or N == 3:
	print('NO')
elif N % 2 == 0:
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
	count = 0
	for j in range(5, N, 2):
		print(str(j + 1) + ' - ' + str(j) + ' = 1')
		count += 1
	for l in range(count - 1):
		print('1 * 1 = 1')
	if N > 4:
		print('24 * 1 = 24')
else:
	print('YES')
	print('5 - 1 = 4')
	print('4 - 2 = 2')
	print('3 * 4 = 12')
	print('12 * 2 = 24')
	count = 0
	for j in range(6, N, 2):
		print(str(j + 1) + ' - ' + str(j) + ' = 1')
		count += 1
	for l in range(count - 1):
		print('1 * 1 = 1')
	if N > 5:
		print('24 * 1 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 0:
		for i in range(5, n, 2):
			print('%s - %s = 1\n1 * 1 = 1' % (str(i + 1), str(i)))
		print('1 * 2 = 2')
	else:
		for i in range(6, n, 2):
			print('%s - %s = 1\n1 * 1 = 1' % (str(i + 1), str(i)))
		print('5 - 2 = 3\n3 - 1 = 2')
	print('2 * 3 = 6\n6 * 4 = 24')


from io import BytesIO, IOBase
from math import sqrt
import sys, os
inpl = lambda : list(map(int, input().split()))
inpm = lambda : map(int, input().split())
inpi = lambda : int(input())
inp = lambda : input()
(rev, ra, l) = (reversed, range, len)
P = print
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))

def input():
	return sys.stdin.readline().rstrip('\r\n')

def B(n):
	return bin(n).replace('0b', '')

def factors(n):
	arr = []
	for i in ra(2, int(sqrt(n)) + 1):
		if n % i == 0:
			arr.append(i)
			if i * i != n:
				arr.append(int(n / i))
	return arr

def dfs(arr, n):
	pairs = [[i + 1] for i in ra(n)]
	vis = [0] * (n + 1)
	for i in ra(l(arr)):
		pairs[arr[i][0] - 1].append(arr[i][1])
	pairs[arr[i][1] - 1].append(arr[i][0])
	comp = []
	for i in ra(n):
		stack = [pairs[i]]
		temp = []
		if vis[stack[-1][0]] == 0:
			while len(stack) > 0:
				if vis[stack[-1][0]] == 0:
					temp.append(stack[-1][0])
					vis[stack[-1][0]] = 1
					s = stack.pop()
					for j in s[1:]:
						if vis[j] == 0:
							stack.append(pairs[j - 1])
				else:
					stack.pop()
			comp.append(temp)
	return comp
from bisect import bisect_left as bl
from bisect import bisect_right as br
import sys, operator, math, operator
from collections import Counter
import random
mod = 10 ** 9 + 7
n = inpi()
if n == 4:
	P('YES')
	P('1 * 2 = 2')
	P('2 * 3 = 6')
	P('6 * 4 = 24')
elif n == 5:
	P('YES')
	P('5 - 1 = 4')
	P('4 - 2 = 2')
	P('3 * 4 = 12')
	P('12 * 2 =24')
elif n > 5:
	P('YES')
	P(str(n - 1) + ' - ' + str(n) + ' = ' + '-1')
	P('1 + -1 = 0')
	for i in ra(5, n - 1):
		P(str(i) + ' * ' + str(0) + ' = ' + '0')
	P('2 * 3 = 6')
	P('6 * 4 = 24')
	P('24 + 0 = 24')
else:
	P('NO')


n = int(input())
if n <= 3:
	print('NO')
else:
	print('YES')
	if n == 4:
		print('1 * 2 = 2\n2 * 3 = 6\n6 * 4 = 24')
	elif n == 5:
		print('2 - 1 = 1\n5 + 4 = 9\n9 - 1 = 8\n8 * 3 = 24')
	else:
		print('6 * 4 = 24\n1 + 2 = 3\n3 - 3 = 0\n5 * 0 = 0')
		for i in range(7, n + 1):
			print(str(i) + ' * 0 = 0')
		print('0 + 24 = 24')


def odd_number(n):
	for i in range(n, 5, -2):
		print('%d - %d = %d' % (i, i - 1, 1))
		print('%d * %d = %d' % (1, 1, 1))
	print('3 - 1 = 2\n' + '2 * 2 = 4\n' + '5 * 4 = 20\n' + '20 + 4 = 24')

def even_number(n):
	for i in range(n, 4, -2):
		print('%d - %d = %d' % (i, i - 1, 1))
		print('%d * %d = %d' % (1, 1, 1))
	print('2 * 4 = 8\n' + '3 * 8 = 24\n' + '1 * 24 = 24')
n = input()
n = int(n)
if n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 1:
		odd_number(n)
	else:
		even_number(n)


n = int(input())
if n <= 3:
	print('NO')
else:
	print('YES')
	if n == 5:
		print('5 - 2 = 3')
		print('3 - 1 = 2')
		print('4 * 3 = 12')
		print('12 * 2 = 24\n')
	else:
		print('4 * 3 = 12')
		print('12 * 2 = 24')
		if n >= 6:
			print('6 - 5 = 1')
			print('1 - 1 = 0')
			i = 7
			while i < n + 1:
				print(i, '* 0 = 0')
				i += 1
			print('24 + 0 = 24\n')
		elif n == 4:
			print('24 * 1 = 24\n')


def oddNum():
	print('2 * 4 = 8')
	print('3 * 8 = 24')
	print('1 * 24 = 24')

def evenNum():
	print('5 - 2 = 3')
	print('3 + 3 = 6')
	print('4 * 6 = 24')
	print('1 * 24 = 24')

def caculate(n, flag):
	if n != flag:
		for i in range(n, flag + 1, -2):
			print(str(i) + ' - ' + str(i - 1) + ' = 1')
			if i != flag + 2:
				print('1 * ' + str(i - 2) + ' = ' + str(i - 2))
		print('1 * ' + str(flag) + ' = ' + str(flag))
	if flag == 4:
		oddNum()
	else:
		evenNum()
n = int(input())
if n >= 4 and n % 2 == 0:
	print('YES')
	caculate(n, 4)
elif n >= 5 and n % 2 == 1:
	print('YES')
	caculate(n, 5)
else:
	print('NO')


import sys

class InputBuffer:

	@classmethod
	def initial(cls):
		cls.buffer = []
		cls.index = -1
		for line in sys.stdin.readlines():
			cls.buffer.extend(line.split())

	@classmethod
	def next_str(cls):
		cls.index += 1
		if cls.index >= len(cls.buffer):
			return None
		else:
			return cls.buffer[cls.index]

	@classmethod
	def next_int(cls):
		return int(cls.next_str())

def main():
	n = InputBuffer.next_int()
	if n < 4:
		print('NO')
		return
	print('YES')
	while n > 5:
		print('{0} - {1} = 1'.format(n, n - 1))
		print('1 * 1 = 1')
		n -= 2
	if n == 5:
		print('5 + 1 = 6')
		print('6 - 3 = 3')
	elif n == 4:
		print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
InputBuffer.initial()
main()


y = int(input())
a = [u for u in range(1, y + 1)]
if y > 5:
	print('YES')
	print('6 * 4 = 24')
	print('5 - 3 = 2')
	print('2 - 2 = 0')
	print('1 * 0 = 0')
	for i in range(7, y + 1):
		print(i, '* 0 = 0')
	print('24 + 0 = 24')
elif y == 5:
	print('YES')
	print('5 + 1 = 6')
	print('6 * 2 = 12')
	print('4 * 3 = 12')
	print('12 + 12 = 24')
elif y == 4:
	print('YES')
	print('1 * 2 = 2')
	print('3 * 4 = 12')
	print('2 * 12 = 24')
else:
	print('NO')


def printer(n):
	ones = 1
	if n % 2 == 0 and n > 4:
		while n > 4:
			print(str(n) + ' ' + '-' + ' ' + str(n - 1) + ' = ' + '1')
			n -= 2
			ones += 1
	elif n % 2 == 1 and n > 5:
		while n > 5:
			print(str(n) + ' ' + '-' + ' ' + str(n - 1) + ' = ' + '1')
			n -= 2
			ones += 1
	if ones == 1:
		if n == 4:
			print('1 * 2 = 2')
			print('2 * 3 = 6')
			print('4 * 6 = 24')
		else:
			print('1 + 5 = 6')
			print('3 - 2 = 1')
			print('1 * 4 = 4')
			print('4 * 6 = 24')
	else:
		for i in range(ones - 1):
			print('1 * 1 = 1')
		ones = 1
		printer(n)
n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	printer(n)


def f(b: int):
	if b < 4:
		print('NO')
	elif (b - 4) % 2 == 0:
		print('YES\n2 * 4 = 8\n3 * 8 = 24\n1 * 24 = 24')
		r = 0
		while r < b - 4:
			print('%d - %d = 1' % (b - r, b - r - 1))
			print('1 * 24 = 24')
			r = r + 2
	else:
		print('YES')
		print('5 - 2 = 3')
		print('3 + 3 = 6')
		print('4 * 6 = 24')
		print('1 * 24 = 24')
		r = 0
		while r < b - 5:
			print('%d - %d = 1' % (b - r, b - r - 1))
			print('1 * 24 = 24')
			r = r + 2
a = input()
b = int(a)
f(b)


n = int(input())
if n % 2:
	if n == 1 or n == 3:
		print('NO')
	elif n == 5:
		print('YES')
		print(5, '*', 4, '=', 20)
		print(2, '-', 1, '=', 1)
		print(1, '+', 3, '=', 4)
		print(4, '+', 20, '=', 24)
	else:
		print('YES')
		cnt = 0
		for i in range(n, 5, -2):
			print(i, '-', i - 1, '=', 1)
			cnt += 1
		for i in range(cnt - 1):
			print(1, '*', 1, '=', 1)
		print(5, '*', 4, '=', 20)
		print(3, '+', 1, '=', 4)
		print(2, '-', 1, '=', 1)
		print(1, '*', 4, '=', 4)
		print(20, '+', 4, '=', 24)
elif n == 2:
	print('NO')
else:
	print('YES')
	cnt = 0
	for i in range(n, 4, -2):
		print(i, '-', i - 1, '=', 1)
		cnt += 1
	for i in range(cnt):
		print(1, '*', 1, '=', 1)
	print(1, '*', 2, '=', 2)
	print(2, '*', 3, '=', 6)
	print(6, '*', 4, '=', 24)


n = int(input())
if n >= 4 and (n - 4) % 2 == 0:
	print('YES')
	print('1 * 2 = 2')
	print('2 * 3 = 6')
	print('6 * 4 = 24')
	tmp = 4
	for i in range((n - 4) // 2):
		print(tmp + 2, '-', tmp + 1, '=', 1)
		print('24 * 1 = 24')
		tmp += 2
elif n >= 5 and (n - 5) % 2 == 0:
	print('YES')
	print('5 - 3 = 2')
	print('2 * 4 = 8')
	print('1 + 2 = 3')
	print('3 * 8 = 24')
	tmp = 5
	for i in range((n - 5) // 2):
		print(tmp + 2, '-', tmp + 1, '=', 1)
		print('24 * 1 = 24')
		tmp += 2
else:
	print('NO')


n = int(input())
if n < 4:
	print('NO')
elif n & 1:
	print('YES\n5 - 3 = 2\n2 + 1 = 3\n2 * 3 = 6\n4 * 6 = 24')
	for i in range(6, n, 2):
		print(i + 1, '-', i, '=', 1)
		print('24 * 1 = 24')
else:
	print('YES\n1 * 2 = 2\n2 * 3 = 6\n6 * 4 = 24')
	for i in range(5, n, 2):
		print(i + 1, '-', i, '=', 1)
		print('24 * 1 = 24')


import math

def main():
	n = int(input())
	if n <= 3:
		print('NO')
	elif n % 2 == 0:
		print('YES')
		print('1 * 2 = 2')
		print('2 * 3 = 6')
		print('6 * 4 = 24')
		for i in range(5, n, 2):
			print('%d - %d = 1' % (i + 1, i))
			print('24 * 1 = 24')
	else:
		print('YES')
		print('2 - 1 = 1')
		print('1 + 3 = 4')
		print('4 * 5 = 20')
		print('20 + 4 = 24')
		for i in range(6, n, 2):
			print('%d - %d = 1' % (i + 1, i))
			print('24 * 1 = 24')
main()


import os
import sys
from collections import *
from bisect import *
from io import BytesIO, IOBase

def vsInput():
	sys.stdin = open('input.txt', 'r')
	sys.stdout = open('output.txt', 'w')
BUFSIZE = 8192

class FastIO(IOBase):
	newlines = 0

	def __init__(self, file):
		self._fd = file.fileno()
		self.buffer = BytesIO()
		self.writable = 'x' in file.mode or 'r' not in file.mode
		self.write = self.buffer.write if self.writable else None

	def read(self):
		while True:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			if not b:
				break
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines = 0
		return self.buffer.read()

	def readline(self):
		while self.newlines == 0:
			b = os.read(self._fd, max(os.fstat(self._fd).st_size, BUFSIZE))
			self.newlines = b.count(b'\n') + (not b)
			ptr = self.buffer.tell()
			(self.buffer.seek(0, 2), self.buffer.write(b), self.buffer.seek(ptr))
		self.newlines -= 1
		return self.buffer.readline()

	def flush(self):
		if self.writable:
			os.write(self._fd, self.buffer.getvalue())
			(self.buffer.truncate(0), self.buffer.seek(0))

class IOWrapper(IOBase):

	def __init__(self, file):
		self.buffer = FastIO(file)
		self.flush = self.buffer.flush
		self.writable = self.buffer.writable
		self.write = lambda s: self.buffer.write(s.encode('ascii'))
		self.read = lambda : self.buffer.read().decode('ascii')
		self.readline = lambda : self.buffer.readline().decode('ascii')
(sys.stdin, sys.stdout) = (IOWrapper(sys.stdin), IOWrapper(sys.stdout))
input = lambda : sys.stdin.readline().rstrip('\r\n')
ALPHA = 'abcdefghijklmnopqrstuvwxyz'
M = 10 ** 9 + 7
EPS = 1e-06

def Ceil(a, b):
	return a // b + int(a % b > 0)

def value():
	return tuple(map(int, input().split()))

def array():
	return [int(i) for i in input().split()]

def Int():
	return int(input())

def Str():
	return input()

def arrayS():
	return [i for i in input().split()]
n = Int()
if n < 4:
	print('NO')
	exit()
print('YES')
if n == 4:
	print('3 * 4 = 12')
	print('12 * 2 = 24')
	print('24 * 1 = 24')
elif n == 5:
	print('5 * 4 = 20')
	print('2 - 1 = 1')
	print('3 + 1 = 4')
	print('20 + 4 = 24')
else:
	print('3 - 2 = 1')
	print('1 - 1 = 0')
	for i in range(7, n + 1):
		print('{} * 0 = 0'.format(i))
	print('5 * 0 = 0')
	print('4 * 6 = 24')
	print('24 + 0 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	i = n
	t1 = 0
	while i > 5:
		print(i, '-', i - 1, '=', 1)
		i -= 2
		t1 += 1
	if n % 2 == 1:
		print(5, '-', 3, '=', 2)
		print(2, '+', 1, '=', 3)
		print(4, '*', 3, '=', 12)
		print(2, '*', 12, '=', 24)
	else:
		print(4, '*', 3, '=', 12)
		print(2, '*', 12, '=', 24)
		print(1, '*', 24, '=', 24)
	j = 0
	while j < t1:
		j += 1
		print(24, '*', 1, '=', 24)


def main():
	n = int(input())
	if n <= 3:
		print('NO')
		return
	_4 = '4 * 3 = 12\n12 * 2 = 24\n1 * 24 = 24'
	_5 = '5 - 3 = 2\n2 + 1 = 3\n3 * 4 = 12\n2 * 12 = 24'
	print('YES')
	for i in range(n, 4 + n % 2, -2):
		print('{} - {} = 1'.format(i, i - 1))
		print('{0} * 1 = {0}'.format(i - 2))
	print(_5 if n % 2 else _4)
main()


def four():
	print('YES')
	print('1 * 2 = 2')
	print('3 * 4 = 12')
	print('2 * 12 = 24')

def five():
	print('YES')
	print('1 + 2 = 3')
	print('5 - 3 = 2')
	print('2 * 4 = 8')
	print('3 * 8 = 24')
n = int(input())
if n <= 3:
	print('NO')
elif n == 4:
	four()
elif n == 5:
	five()
elif n % 2 == 0:
	four()
	for i in range(5, n, 2):
		print(f'{i + 1} - {i} = 1')
	for i in range(0, n - 5, 2):
		print('24 * 1 = 24')
else:
	five()
	for i in range(6, n, 2):
		print(f'{i + 1} - {i} = 1')
	for i in range(0, n - 6, 2):
		print('24 * 1 = 24')


n = int(input())
if n < 4:
	print('NO')
else:
	print('YES')
	if n % 2 == 1:
		print('3 * 5 = 15')
		print('2 * 4 = 8')
		print('1 + 8 = 9')
		print('9 + 15 = 24')
		for i in range(6, n + 1, 2):
			print(i + 1, ' - ', i, '= 1')
			print('24 * 1 = 24')
	else:
		print('1 * 2 = 2')
		print('3 * 4 = 12')
		print('12 * 2 = 24')
		for i in range(5, n + 1, 2):
			print(i + 1, ' - ', i, '= 1')
			print('24 * 1 = 24')


n = int(input())
if n == 1 or n == 2 or n == 3:
	print('NO')
else:
	print('YES')
	if n % 2 == 0:
		if n == 4:
			print('1 * 2 = 2')
			print('2 * 3 = 6')
			print('6 * 4 = 24')
		else:
			k = round((n - 4) / 2)
			print('1 * 2 = 2')
			print('2 * 3 = 6')
			print('6 * 4 = 24')
			for i in range(0, k):
				print(n - 2 * i, '-', n - 2 * i - 1, '= 1')
			for i in range(0, k - 1):
				print('1 * 1 = 1')
			print('24 * 1 = 24')
	elif n == 5:
		print('5 + 4 = 9')
		print('9 * 3 = 27')
		print('2 + 1 = 3')
		print('27 - 3 = 24')
	else:
		a = round((n - 5) / 2)
		print('5 + 4 = 9')
		print('9 * 3 = 27')
		print('2 + 1 = 3')
		print('27 - 3 = 24')
		for i in range(0, a):
			print(n - (2 * i + 1) + 1, '-', n - (2 * i + 1), '= 1')
		for i in range(0, a - 1):
			print('1 * 1 = 1')
		print('24 * 1 = 24')


from sys import stdin, stdout
from math import ceil, floor

def solve1(x):
	b = x
	a = x - 1
	k = 0
	for i in range(x - 1):
		if x & 1 == 0:
			if a == 4 or b == 4:
				break
		elif a == 5 or b == 5:
			break
		stdout.write('%s - %s = %s\n' % (b, a, b - a))
		b -= 2
		a -= 2
		k += 1
	j = k
	for i in range(j):
		if x & 1 == 0:
			stdout.write('%s * %s = %s\n' % (4, 1, 4))
		else:
			stdout.write('%s * %s = %s\n' % (5, 1, 5))
		k += 1
	if x & 1 == 0:
		a = 3
		b = 4
		for i in range(3):
			c = a * b
			stdout.write('%s * %s = %s\n' % (a, b, c))
			a = a - 1
			b = c
			k += 1
	else:
		b = 5
		a = 4
		stdout.write('%s + %s = %s\n' % (b, a, a + b))
		k += 1
		b = 9
		a = 3
		stdout.write('%s * %s = %s\n' % (b, a, b * a))
		k += 1
		b = 27
		a -= 1
		for i in range(2):
			stdout.write('%s - %s = %s\n' % (b, a, b - a))
			k += 1
			b = b - a
			a -= 1

def main():
	n = int(stdin.readline().strip())
	if n <= 3:
		stdout.write('NO\n')
		return
	stdout.write('YES\n')
	solve1(n)
main()