class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: F = None
        self.w: D = None
        self.q: E = None
        self.v: H = None
        self.z: G = None
        self.t: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: A = None
        self.z: H = None
        self.u: A = None
        self.o: A = None
        self.w: H = None
        self.y: E = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: G = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: G = None
        self.v: A = None
        self.y: G = None
        self.t: A = None
        self.x: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.x: D = None
        self.t: A = None
        self.z: H = None
        self.u: A = None
        self.o: A = None
        self.w: H = None
        self.y: E = None
        self.v: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.t: G = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: G = None
        self.v: A = None
        self.y: G = None
        self.t: A = None
        self.x: C = None
        self.txt = txt

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

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

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

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