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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: G = None
        self.q: G = None
        self.w: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: A = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.x: G = None
        self.q: G = None
        self.w: G = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.s: D = None
        self.q: A = None
        self.txt = txt

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

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

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

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