import math


def as_minutes(s):
    """
    Returns <s> seconds in (hours, minutes, seconds) format.
    """
    h, m = math.floor(s / 3600), math.floor(s / 60)
    m, s = m - h * 60, s - m * 60
    return '%dh %dm %ds' % (h, m, s)