﻿from math import*
def seisme():
  x=-5
  while x<=5:
    y=sqrt(25-x**2)
    d2=sqrt((3-x)**2+(7-y)**2)
    d3=sqrt((9-x)**2+y**2)
    dif2=abs(d2-3)
    dif3=abs(d3-7)
    if dif2<=0.1 and dif3<=0.1 :
      return(x,y)
    x=x+0.1
  x=-5
  while x<=5:
    y=-sqrt(25-x**2)
    d2=sqrt((3-x)**2+(7-y)**2)
    d3=sqrt((9-x)**2+y**2)
    dif2=abs(d2-3)
    dif3=abs(d3-7)
    if dif2<=0.1 and dif3<=0.1 :
      return(x,y)
    x=x+0.1
  return("pas d'epicentre")

