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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: F = None
        self.x: A = None
        self.o: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: B = None
        self.s: D = None
        self.o: H = None
        self.z: E = None
        self.w: E = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: F = None
        self.p: B = None
        self.t: F = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.q: F = None
        self.x: A = None
        self.o: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.t: B = None
        self.s: D = None
        self.o: H = None
        self.z: E = None
        self.w: E = None
        self.x: C = None
        self.y: B = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.s: F = None
        self.p: B = None
        self.t: F = None
        self.txt = txt

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

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