public class homework3 { public static void main(String[] args) { for(int i=0;i<=10;i++){ for(int j=0;j<=5;j++){ for(int k=0;k<=2;k++){ if(i+j*2+k*5 == 10){ System.out.println(i+" "+j+" "+k); } } } } } }