class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.o: D = None
        self.v: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: I = None
        self.w: E = None
        self.q: F = None
        self.x: E = None
        self.o: H = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: D = None
        self.o: E = None
        self.y: D = None
        self.z: G = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: G = None
        self.s: C = None
        self.t: B = None
        self.o: E = None
        self.w: B = None
        self.q: I = None
        self.r: H = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: B = None
        self.s: E = None
        self.o: H = None
        self.r: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: H = None
        self.t: I = None
        self.w: E = None
        self.q: F = None
        self.x: E = None
        self.o: H = None
        self.u: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.v: D = None
        self.o: E = None
        self.y: D = None
        self.z: G = None
        self.w: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: F = None
        self.u: G = None
        self.s: C = None
        self.t: B = None
        self.o: E = None
        self.w: B = None
        self.q: I = None
        self.r: H = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.v: A = None
        self.w: B = None
        self.s: E = None
        self.o: H = None
        self.r: G = None
        self.txt = txt

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

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