import time


def elapsedTime(timestamp):
    """Get Elapsed time from given timestamp"""
    delta = int(time.time()) - timestamp
    if delta < 0:
        return "Invalid timestamp!"
    day_length = 24*60*60
    days = 0
    hour_length = 60*60
    hours = 0
    minute_length = 60
    minutes = 0
    ret_str = ''

    if delta > day_length:
        days = delta // day_length
        delta = delta % day_length
        ret_str += "{} days ".format(days)
    if delta > hour_length or days > 0:
        hours = delta // hour_length
        delta = delta % hour_length
        ret_str += "{} hours ".format(hours)
    if delta > minute_length or days > 0 or hours > 0:
        minutes = delta // minute_length
        delta = delta % minute_length
        ret_str += "{} minutes ".format(minutes)
    ret_str += "{} seconds".format(delta)
    return ret_str