```
public class Solution {
public int integerBreak(int num) {
int result =1;
if(num == 1 || num ==2)
return 1;
if(num ==3)
return 2;
while(num > 4){
result = result * 3;
num = num - 3;
}
result = result * num;
return result;
}
}
```