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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: E = None
        self.w: G = None
        self.q: C = None
        self.u: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: D = None
        self.p: H = None
        self.x: H = None
        self.t: H = None
        self.q: D = None
        self.u: B = None
        self.w: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: F = None
        self.y: D = None
        self.r: H = None
        self.s: D = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.r: H = None
        self.z: H = None
        self.q: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.z: E = None
        self.w: G = None
        self.q: C = None
        self.u: A = None
        self.s: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.v: D = None
        self.p: H = None
        self.x: H = None
        self.t: H = None
        self.q: D = None
        self.u: B = None
        self.w: E = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: C = None
        self.v: F = None
        self.y: D = None
        self.r: H = None
        self.s: D = None
        self.p: H = None
        self.q: C = None
        self.txt = txt

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

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

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