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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.u: I = None
        self.v: C = None
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: G = None
        self.z: F = None
        self.p: G = None
        self.u: E = None
        self.y: A = None
        self.s: H = None
        self.x: A = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: D = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: E = None
        self.x: I = None
        self.z: I = None
        self.s: I = None
        self.w: H = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: D = None
        self.p: D = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: D = None
        self.x: F = None
        self.w: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.s: F = None
        self.u: I = None
        self.v: C = None
        self.r: G = None
        self.o: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: G = None
        self.z: F = None
        self.p: G = None
        self.u: E = None
        self.y: A = None
        self.s: H = None
        self.x: A = None
        self.r: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: C = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.t: D = None
        self.y: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: E = None
        self.p: E = None
        self.x: I = None
        self.z: I = None
        self.s: I = None
        self.w: H = None
        self.v: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: F = None
        self.y: D = None
        self.p: D = None
        self.s: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.s: G = None
        self.t: D = None
        self.x: F = None
        self.w: H = None
        self.txt = txt

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

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