public class Time {
public Time(){
System.out.println(whatTime(3661));
}
public String whatTime(int seconds){
int hour;
int min;
int sec;
hour=seconds/3600;
seconds=seconds%3600;
min=seconds/60;
sec=seconds%60;
String h,m,s;
return new String(hour+":"+min+":"+sec);
}
public static void main(String args[]){
new Time();
}
}