#!/usr/bin/env python
# -*- coding: utf-8 -*-
d=[1, 12, 13, 15, 15, 21, 2, 2, 2, 5, 8, 12, 25, 85.181, 86.081, 87.181, 88.182]
d.sort()
sv = 0
svtime=1 #диапазон связи
prev = None
for value in d:
if prev != None:
if((value-prev)<=svtime):
if sv == 0:
print(prev)
sv = 1
else:
sv = 0
prev = value
OUT >>> 1, 12, 15