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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: I = None
        self.p: F = None
        self.q: I = None
        self.x: A = None
        self.r: A = None
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: A = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: A = None
        self.s: I = None
        self.p: A = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: D = None
        self.s: E = None
        self.t: A = None
        self.y: D = None
        self.p: I = None
        self.o: E = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: B = None
        self.q: D = None
        self.x: A = None
        self.s: F = None
        self.t: F = None
        self.r: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: I = None
        self.p: F = None
        self.q: I = None
        self.x: A = None
        self.r: A = None
        self.y: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: A = None
        self.s: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: I = None
        self.w: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: I = None
        self.x: A = None
        self.s: I = None
        self.p: A = None
        self.w: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: B = None
        self.z: D = None
        self.s: E = None
        self.t: A = None
        self.y: D = None
        self.p: I = None
        self.o: E = None
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: B = None
        self.q: D = None
        self.x: A = None
        self.s: F = None
        self.t: F = None
        self.r: C = None
        self.txt = txt

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

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