class A:
    def __init__(self, txt: str):
        self.s: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: D = None
        self.p: B = None
        self.s: A = None
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: F = None
        self.v: A = None
        self.t: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: D = None
        self.p: B = None
        self.s: A = None
        self.u: A = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.r: F = None
        self.v: A = None
        self.t: B = None
        self.txt = txt

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

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

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