/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
long[] testInputs = {10210608}; // Example inputs in seconds
for (long epochTimeSeconds : testInputs) {
// Convert seconds into days, hours, minutes
long days = epochTimeSeconds / (24 * 60 * 60);
long remainingSecondsAfterDays = epochTimeSeconds % (24 * 60 * 60);
long hours = remainingSecondsAfterDays / (60 * 60);
long remainingSecondsAfterHours = remainingSecondsAfterDays % (60 * 60);
long minutes = remainingSecondsAfterHours / 60;
// Print the result
System.
out.
println(epochTimeSeconds
+ " seconds is equivalent to:"); System.
out.
println(days
+ " days, " + hours
+ " hours, " + minutes
+ " minutes."); System.
out.
println(); // Add a blank line for readability }
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCSBsb25nW10gdGVzdElucHV0cyA9IHsxMDIxMDYwOH07IC8vIEV4YW1wbGUgaW5wdXRzIGluIHNlY29uZHMKCiAgICAgICAgZm9yIChsb25nIGVwb2NoVGltZVNlY29uZHMgOiB0ZXN0SW5wdXRzKSB7CiAgICAgICAgICAgIC8vIENvbnZlcnQgc2Vjb25kcyBpbnRvIGRheXMsIGhvdXJzLCBtaW51dGVzCiAgICAgICAgICAgIGxvbmcgZGF5cyA9IGVwb2NoVGltZVNlY29uZHMgLyAoMjQgKiA2MCAqIDYwKTsKICAgICAgICAgICAgbG9uZyByZW1haW5pbmdTZWNvbmRzQWZ0ZXJEYXlzID0gZXBvY2hUaW1lU2Vjb25kcyAlICgyNCAqIDYwICogNjApOwoKICAgICAgICAgICAgbG9uZyBob3VycyA9IHJlbWFpbmluZ1NlY29uZHNBZnRlckRheXMgLyAoNjAgKiA2MCk7CiAgICAgICAgICAgIGxvbmcgcmVtYWluaW5nU2Vjb25kc0FmdGVySG91cnMgPSByZW1haW5pbmdTZWNvbmRzQWZ0ZXJEYXlzICUgKDYwICogNjApOwoKICAgICAgICAgICAgbG9uZyBtaW51dGVzID0gcmVtYWluaW5nU2Vjb25kc0FmdGVySG91cnMgLyA2MDsKCiAgICAgICAgICAgIC8vIFByaW50IHRoZSByZXN1bHQKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGVwb2NoVGltZVNlY29uZHMgKyAiIHNlY29uZHMgaXMgZXF1aXZhbGVudCB0bzoiKTsKICAgICAgICAgICAgU3lzdGVtLm91dC5wcmludGxuKGRheXMgKyAiIGRheXMsICIgKyBob3VycyArICIgaG91cnMsICIgKyBtaW51dGVzICsgIiBtaW51dGVzLiIpOwogICAgICAgICAgICBTeXN0ZW0ub3V0LnByaW50bG4oKTsgLy8gQWRkIGEgYmxhbmsgbGluZSBmb3IgcmVhZGFiaWxpdHkKICAgICAgICB9Cgl9Cn0=