class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: E = None
        self.q: H = None
        self.s: G = 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.o: D = None
        self.z: B = None
        self.p: F = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: C = None
        self.y: H = None
        self.r: E = None
        self.t: G = None
        self.v: B = None
        self.x: E = None
        self.txt = txt

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

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

e.t = a
e.r = m
e.q = i
e.s = k
f.t = d
d.o = g
d.z = f
d.t = f
d.p = a
g.t = i
m.y = i
m.v = g
m.s = f
n.p = g
n.s = g
n.t = m
n.x = k
n.y = f
n.v = d
n.o = i
k.p = d
k.u = d
k.y = i
k.r = m
k.x = m
k.t = j
k.v = f
i.x = k
i.o = j
i.v = d
i.q = d
i.u = e
i.s = e
i.z = n
a.p = g
a.s = g
a.t = m
a.x = j
a.y = f
a.v = d
a.o = i
j.p = d
j.u = d
j.y = i
j.r = m
j.x = m
j.t = k
j.v = f
assert a.y.t.o.t.u.r.v.txt == "
class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.r: E = None
        self.q: H = None
        self.s: G = 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.o: D = None
        self.z: B = None
        self.p: F = None
        self.t: B = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.u: C = None
        self.y: H = None
        self.r: E = None
        self.t: G = None
        self.v: B = None
        self.x: E = None
        self.txt = txt

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

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

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