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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: H = None
        self.x: D = None
        self.t: A = None
        self.v: B = None
        self.s: A = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: D = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: F = None
        self.t: C = None
        self.p: C = None
        self.y: C = None
        self.x: B = None
        self.z: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.w: B = None
        self.o: E = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: H = None
        self.y: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.y: C = None
        self.z: A = None
        self.r: C = None
        self.u: E = None
        self.o: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: F = None
        self.y: H = None
        self.x: D = None
        self.t: A = None
        self.v: B = None
        self.s: A = None
        self.u: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: D = None
        self.q: G = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: H = None
        self.o: F = None
        self.t: C = None
        self.p: C = None
        self.y: C = None
        self.x: B = None
        self.z: B = None
        self.q: B = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: G = None
        self.u: A = None
        self.w: B = None
        self.o: E = None
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.p: H = None
        self.y: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: A = None
        self.y: C = None
        self.z: A = None
        self.r: C = None
        self.u: E = None
        self.o: C = None
        self.txt = txt

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

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