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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: E = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

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

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

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

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

f = A("f")
i = B("i")
m = C("m")
l = D("l")
b = E("b")
h = F("h")
k = A("k")
d = C("d")
n = B("n")

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

class B:
    def __init__(self, txt: str):
        self.w: C = None
        self.y: E = None
        self.v: F = None
        self.z: C = None
        self.txt = txt

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

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

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

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

f = A("f")
i = B("i")
m = C("m")
l = D("l")
b = E("b")
h = F("h")
k = A("k")
d = C("d")
n = B("n")

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