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

class B:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: D = None
        self.v: E = None
        self.r: F = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: E = None
        self.q: D = None
        self.o: H = None
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: B = None
        self.t: F = None
        self.s: C = None
        self.x: F = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: B = None
        self.y: D = None
        self.v: E = None
        self.r: F = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.r: F = None
        self.y: E = None
        self.q: D = None
        self.o: H = None
        self.u: B = None
        self.p: G = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.u: A = None
        self.w: B = None
        self.t: F = None
        self.s: C = None
        self.x: F = None
        self.txt = txt

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

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

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