from datetime import datetime


def determine_time_slot(time):
    """
    determines time slot of the day based on given datetime
    :type time: str     string containing datetime "yyyy-mm-dd hh:mm:ss"
    :rtype    : int     id of the 10-minute slot, 0 <= id < 144
    """
    dt = datetime.strptime(time, "%Y-%m-%d %H:%M:%S")
    return (dt.hour*60+dt.minute)/10