def qtr(secs_left):
    """Given the seconds left in the game, determine the current quarter."""
    if secs_left <= 900:
        return 4
    if secs_left <= 1800:
        return 3
    if secs_left <= 2700:
        return 2
    return 1