def y(a): if a == 0.5: print('Сингулярность') else: print((a**2+1)/(2*a-1))while True: try: y(float(input('a: '))) except: continue