class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: E = None
        self.q: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: F = None
        self.t: C = None
        self.v: B = None
        self.txt = txt

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

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

e = A("e")
m = B("m")
g = C("g")
i = D("i")
n = E("n")
f = F("f")
h = E("h")
l = E("l")
j = A("j")

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: C = None
        self.r: F = None
        self.t: C = None
        self.v: B = None
        self.txt = txt

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

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

e = A("e")
m = B("m")
g = C("g")
i = D("i")
n = E("n")
f = F("f")
h = E("h")
l = E("l")
j = A("j")

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