def get_next_locations(cur_x, cur_y):
    """Get next locations from (cur_x, cur_y) location."""
    changes = (
        (-1, 0),
        (1, 0),
        (0, 1),
        (0, -1),
    )
    return [(cur_x + change_x, cur_y + change_y)
            for change_x, change_y in changes]