class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: B = None
        self.o: D = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: A = None
        self.q: D = None
        self.o: A = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.y: B = None
        self.p: F = None
        self.z: G = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: B = None
        self.w: B = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

d = A("d")
e = B("e")
j = C("j")
n = D("n")
i = E("i")
h = F("h")
g = G("g")
k = D("k")
l = A("l")
a = E("a")

d.x = h
d.s = e
d.z = e
d.o = k
e.t = g
j.t = h
j.r = e
n.z = k
n.q = k
n.y = k
n.r = d
n.o = d
n.x = l
i.x = a
i.s = a
i.y = e
i.p = h
i.z = g
i.o = j
h.q = n
h.r = e
h.w = e
h.o = l
g.v = e
k.z = n
k.q = n
k.y = n
k.r = d
k.o = d
k.x = d
l.x = h
l.s = e
l.z = e
l.o = n
a.x = i
a.s = i
a.y = e
a.p = h
a.z = g
a.o = j
assert e.t.v.t.txt == "
class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.s: B = None
        self.o: D = None
        self.z: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: D = None
        self.r: A = None
        self.q: D = None
        self.o: A = None
        self.y: D = None
        self.x: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: E = None
        self.s: E = None
        self.y: B = None
        self.p: F = None
        self.z: G = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: D = None
        self.r: B = None
        self.w: B = None
        self.o: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: B = None
        self.txt = txt

d = A("d")
e = B("e")
j = C("j")
n = D("n")
i = E("i")
h = F("h")
g = G("g")
k = D("k")
l = A("l")
a = E("a")

d.x = h
d.s = e
d.z = e
d.o = k
e.t = g
j.t = h
j.r = e
n.z = k
n.q = k
n.y = k
n.r = d
n.o = d
n.x = l
i.x = a
i.s = a
i.y = e
i.p = h
i.z = g
i.o = j
h.q = n
h.r = e
h.w = e
h.o = l
g.v = e
k.z = n
k.q = n
k.y = n
k.r = d
k.o = d
k.x = d
l.x = h
l.s = e
l.z = e
l.o = n
a.x = i
a.s = i
a.y = e
a.p = h
a.z = g
a.o = j
assert e.t.v.t.txt == "g"