class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: E = None
        self.t: B = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: F = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: G = None
        self.s: C = None
        self.u: B = None
        self.t: B = None
        self.o: C = None
        self.q: H = None
        self.x: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

k = A("k")
b = B("b")
h = C("h")
c = D("c")
n = E("n")
e = F("e")
l = G("l")
j = H("j")

k.o = c
k.w = n
k.t = b
k.s = j
b.p = e
b.u = j
h.y = n
c.w = n
c.t = e
c.o = k
n.z = j
n.q = j
n.r = l
n.x = l
n.s = h
n.o = h
n.u = b
n.t = b
e.v = n
l.u = c
j.o = e
j.v = e
j.x = l
j.u = n
j.s = k
j.p = k
j.z = c
assert l.u.t.v.x.u.t.txt == "
class A:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: E = None
        self.t: B = None
        self.s: H = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: E = None
        self.t: F = None
        self.o: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: H = None
        self.r: G = None
        self.s: C = None
        self.u: B = None
        self.t: B = None
        self.o: C = None
        self.q: H = None
        self.x: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.txt = txt

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

k = A("k")
b = B("b")
h = C("h")
c = D("c")
n = E("n")
e = F("e")
l = G("l")
j = H("j")

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