import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a =sc.nextInt();
sc.close();
for(int i=1;i<a;i++) {
for(int j=1;j<=a;j++) {
int k=a-i-j;
if(k>=i&&k>=j&&j>=i) {
System.out.println(a+"="+i+"+"+j+"+"+k);
}
}
}
}
}
/**************************************************************
Problem: 1516
User: admin
Language: Java
Result: Accepted
Time:1604 ms
Memory:43740 kb
****************************************************************/