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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: A = None
        self.w: B = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: B = None
        self.u: F = None
        self.y: G = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.z: E = None
        self.y: B = None
        self.v: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.u: D = None
        self.s: A = None
        self.w: B = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: E = None
        self.t: B = None
        self.u: F = None
        self.y: G = None
        self.z: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.z: D = None
        self.u: E = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: A = None
        self.z: E = None
        self.y: B = None
        self.v: F = None
        self.txt = txt

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

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