class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: H = None
        self.t: C = None
        self.w: A = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: A = None
        self.v: G = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.y: H = None
        self.t: B = None
        self.p: C = None
        self.u: E = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: A = None
        self.z: H = None
        self.txt = txt

e = A("e")
c = B("c")
j = C("j")
g = D("g")
l = E("l")
h = F("h")
i = G("i")
k = H("k")
b = I("b")

e.x = h
c.s = g
c.y = k
c.t = j
c.v = j
c.w = e
j.v = e
j.x = b
g.p = e
l.z = i
l.v = i
l.o = i
l.u = e
h.v = k
h.z = k
h.y = k
h.r = k
h.t = c
h.p = j
h.u = l
i.r = k
i.s = j
k.s = g
b.w = c
b.y = e
b.z = k
assert k.s.p.x.r.s.p.txt == "
class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.y: H = None
        self.t: C = None
        self.w: A = None
        self.v: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: A = None
        self.x: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: G = None
        self.u: A = None
        self.v: G = None
        self.o: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.z: H = None
        self.y: H = None
        self.t: B = None
        self.p: C = None
        self.u: E = None
        self.r: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.r: H = None
        self.s: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: B = None
        self.y: A = None
        self.z: H = None
        self.txt = txt

e = A("e")
c = B("c")
j = C("j")
g = D("g")
l = E("l")
h = F("h")
i = G("i")
k = H("k")
b = I("b")

e.x = h
c.s = g
c.y = k
c.t = j
c.v = j
c.w = e
j.v = e
j.x = b
g.p = e
l.z = i
l.v = i
l.o = i
l.u = e
h.v = k
h.z = k
h.y = k
h.r = k
h.t = c
h.p = j
h.u = l
i.r = k
i.s = j
k.s = g
b.w = c
b.y = e
b.z = k
assert k.s.p.x.r.s.p.txt == "e"