class A:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: D = None
        self.u: G = None
        self.w: G = None
        self.q: C = None
        self.p: A = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: H = None
        self.z: G = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: F = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.q: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: E = None
        self.o: D = None
        self.txt = txt

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

i = A("i")
h = B("h")
l = C("l")
j = D("j")
d = E("d")
m = F("m")
f = G("f")
b = H("b")
c = A("c")

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.w: H = None
        self.z: G = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: G = None
        self.t: F = None
        self.v: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.v: H = None
        self.w: D = None
        self.q: G = None
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: E = None
        self.o: D = None
        self.txt = txt

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

i = A("i")
h = B("h")
l = C("l")
j = D("j")
d = E("d")
m = F("m")
f = G("f")
b = H("b")
c = A("c")

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