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

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: C = None
        self.w: C = None
        self.o: A = None
        self.t: D = None
        self.v: A = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: A = None
        self.z: F = None
        self.r: A = None
        self.q: G = None
        self.v: F = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: D = None
        self.o: C = None
        self.u: C = None
        self.p: H = None
        self.x: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

g = A("g")
h = B("h")
a = C("a")
e = D("e")
b = E("b")
m = F("m")
c = G("c")
d = H("d")
j = E("j")
k = A("k")

g.u = j
g.y = c
g.r = a
g.w = k
g.o = k
g.z = d
g.x = m
g.v = e
h.q = a
h.y = a
h.w = a
h.o = k
h.v = k
h.t = e
h.u = e
a.y = m
a.z = m
a.v = m
a.p = g
a.r = g
a.q = c
a.u = d
e.x = h
e.s = j
e.p = m
b.p = c
m.q = d
m.p = d
m.t = e
m.o = a
m.u = a
m.x = h
c.r = m
d.s = e
j.p = c
k.u = b
k.y = c
k.r = a
k.w = g
k.o = g
k.z = d
k.x = m
k.v = e
assert a.z.t.x.q.y.u.r.r.r.z.txt == "
class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.y: G = None
        self.r: C = None
        self.w: A = None
        self.z: H = None
        self.x: F = None
        self.v: D = None
        self.o: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.y: C = None
        self.w: C = None
        self.o: A = None
        self.t: D = None
        self.v: A = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.p: A = None
        self.z: F = None
        self.r: A = None
        self.q: G = None
        self.v: F = None
        self.u: H = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.q: H = None
        self.t: D = None
        self.o: C = None
        self.u: C = None
        self.p: H = None
        self.x: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: D = None
        self.txt = txt

g = A("g")
h = B("h")
a = C("a")
e = D("e")
b = E("b")
m = F("m")
c = G("c")
d = H("d")
j = E("j")
k = A("k")

g.u = j
g.y = c
g.r = a
g.w = k
g.o = k
g.z = d
g.x = m
g.v = e
h.q = a
h.y = a
h.w = a
h.o = k
h.v = k
h.t = e
h.u = e
a.y = m
a.z = m
a.v = m
a.p = g
a.r = g
a.q = c
a.u = d
e.x = h
e.s = j
e.p = m
b.p = c
m.q = d
m.p = d
m.t = e
m.o = a
m.u = a
m.x = h
c.r = m
d.s = e
j.p = c
k.u = b
k.y = c
k.r = a
k.w = g
k.o = g
k.z = d
k.x = m
k.v = e
assert a.z.t.x.q.y.u.r.r.r.z.txt == "d"