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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.z: H = None
        self.o: D = None
        self.r: D = None
        self.q: B = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: F = None
        self.t: H = None
        self.s: F = None
        self.w: C = None
        self.r: D = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.y: C = None
        self.p: A = None
        self.w: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.w: G = None
        self.v: C = None
        self.z: H = None
        self.o: D = None
        self.r: D = None
        self.q: B = None
        self.u: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.p: B = None
        self.u: F = None
        self.t: H = None
        self.s: F = None
        self.w: C = None
        self.r: D = None
        self.z: A = None
        self.txt = txt

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

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

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