class A:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: B = None
        self.r: B = None
        self.t: H = None
        self.p: E = None
        self.u: G = None
        self.s: B = None
        self.txt = txt

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: C = None
        self.s: D = None
        self.w: D = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: B = None
        self.r: A = None
        self.q: C = None
        self.u: C = None
        self.txt = txt

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

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

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

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: D = None
        self.o: C = None
        self.s: D = None
        self.w: D = None
        self.v: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.z: A = None
        self.t: B = None
        self.r: A = None
        self.q: C = None
        self.u: C = None
        self.txt = txt

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

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