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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: G = None
        self.v: H = None
        self.o: D = None
        self.w: G = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: A = None
        self.p: C = None
        self.x: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: D = None
        self.r: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: C = None
        self.x: B = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: G = None
        self.v: H = None
        self.o: D = None
        self.w: G = None
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.r: A = None
        self.p: C = None
        self.x: A = None
        self.q: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.u: D = None
        self.r: E = None
        self.v: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: C = None
        self.x: B = None
        self.r: C = None
        self.u: F = None
        self.txt = txt

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

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