class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: H = None
        self.t: H = None
        self.x: D = None
        self.u: E = None
        self.y: C = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: C = None
        self.r: A = None
        self.z: A = None
        self.x: I = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: E = None
        self.v: B = None
        self.o: I = None
        self.p: B = None
        self.w: F = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: F = None
        self.u: I = None
        self.z: E = None
        self.v: C = None
        self.y: A = None
        self.r: F = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: A = None
        self.q: G = None
        self.w: B = None
        self.o: G = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.t: C = None
        self.r: A = None
        self.z: A = None
        self.x: I = None
        self.y: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.x: E = None
        self.v: B = None
        self.o: I = None
        self.p: B = None
        self.w: F = None
        self.u: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: D = None
        self.p: D = None
        self.u: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.p: F = None
        self.u: I = None
        self.z: E = None
        self.v: C = None
        self.y: A = None
        self.r: F = None
        self.q: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: C = None
        self.s: A = None
        self.q: G = None
        self.w: B = None
        self.o: G = None
        self.x: G = None
        self.r: G = None
        self.txt = txt

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

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

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