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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: H = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: G = None
        self.v: B = None
        self.x: B = None
        self.z: E = None
        self.s: F = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: A = None
        self.s: H = None
        self.y: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: G = None
        self.v: B = None
        self.x: B = None
        self.z: E = None
        self.s: F = None
        self.t: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.txt = txt

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

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

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

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

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