# your code goes here
a = [0.2, 0.4, 0.2, 0.1, 0.5, 0.2, 0.1, 0.1, 0.92, 0.2, 0.3, 0.4, 0.3, 0.5, 0.4, 0.2, 0.2]
result = [[a[i-1], a[i], a[i+1]] for i in range(1, len(a)-1) if a[i] >= 0.5]
print(result)
IyB5b3VyIGNvZGUgZ29lcyBoZXJlCmEgPSBbMC4yLCAwLjQsIDAuMiwgMC4xLCAwLjUsIDAuMiwgMC4xLCAwLjEsIDAuOTIsIDAuMiwgMC4zLCAwLjQsIDAuMywgMC41LCAwLjQsIDAuMiwgMC4yXQoKcmVzdWx0ID0gW1thW2ktMV0sIGFbaV0sIGFbaSsxXV0gZm9yIGkgaW4gcmFuZ2UoMSwgbGVuKGEpLTEpIGlmIGFbaV0gPj0gMC41XQpwcmludChyZXN1bHQp
[[0.1, 0.5, 0.2], [0.1, 0.92, 0.2], [0.3, 0.5, 0.4]]