or this:


int secs = new Scanner(System.in).nextInt();
int hours = secs/3600;
//...