def pretty_time(mins):
    """
    Convert time from minutes to 12-hour string with AM/PM.

    :param mins: minutes (integer)
    :returns: Time string like: '8:00AM'
    """
    return "{}{}".format((str(mins / 60) + ":" + str(mins % 60)), ("AM" if mins < 720 else "PM"))