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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: H = None
        self.r: E = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: B = None
        self.o: A = None
        self.w: H = None
        self.z: D = None
        self.t: G = None
        self.r: G = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: E = None
        self.y: E = None
        self.w: A = None
        self.z: A = None
        self.q: B = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.q: E = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: B = None
        self.w: H = None
        self.r: E = None
        self.o: A = None
        self.z: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.u: G = None
        self.p: B = None
        self.o: A = None
        self.w: H = None
        self.z: D = None
        self.t: G = None
        self.r: G = None
        self.v: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: G = None
        self.o: E = None
        self.y: E = None
        self.w: A = None
        self.z: A = None
        self.q: B = None
        self.x: B = None
        self.r: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: D = None
        self.u: B = None
        self.s: E = None
        self.txt = txt

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

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