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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: H = None
        self.s: G = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: A = None
        self.v: H = None
        self.z: A = None
        self.p: G = None
        self.x: F = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: E = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: A = None
        self.r: H = None
        self.s: G = None
        self.w: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: A = None
        self.v: H = None
        self.z: A = None
        self.p: G = None
        self.x: F = None
        self.r: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: B = None
        self.y: A = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: E = None
        self.s: A = None
        self.v: E = None
        self.txt = txt

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

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

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