fork download
  1. import java.io.BufferedReader;
  2. import java.io.InputStreamReader;
  3.  
  4. class Main
  5. {
  6. public static void main (String[] args) throws java.lang.Exception
  7. {
  8. BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
  9. String[] params1 = bufferedReader.readLine().split(" ");
  10. int n = Integer.parseInt(params1[0]);
  11. System.out.printf("%d %d %d", n * 13 / 24, n / 6, n * 7 / 24);
  12. }
  13. }
Success #stdin #stdout 0.05s 2184192KB
stdin
120
stdout
65 20 35