public class BegXYZ {
public static void main(String[] args) {
Random rand = new Random();
while(true) {
int X = rand.nextInt(10);
int Y = rand.nextInt(10);
int Z = rand.nextInt(10);
int sum=X100+Y10+Z;
int sume = Y100+Z10+Z;
if(sum+sume==532) {
System.out.println(sum+"+"+sume+"="+532);
break;
}
}
}
}