public class DisplayTime {

  public static void main(String[] args) {

    int seconds = 500;

    int minutes = seconds / 60;

    int remainingSeconds = seconds % 60;

    System.out.println(seconds + " seconds is " + minutes +

      " minutes and " + remainingSeconds + " seconds");

  }

}