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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: F = None
        self.r: H = None
        self.q: H = None
        self.s: H = None
        self.v: B = None
        self.o: C = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: A = None
        self.q: A = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: A = None
        self.u: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: H = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.w: F = None
        self.r: H = None
        self.q: H = None
        self.s: H = None
        self.v: B = None
        self.o: C = None
        self.p: H = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.r: E = None
        self.w: A = None
        self.q: A = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: A = None
        self.u: F = None
        self.txt = txt

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

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