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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: C = None
        self.q: A = None
        self.o: A = None
        self.z: A = None
        self.p: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: C = None
        self.w: A = None
        self.x: D = None
        self.p: C = None
        self.u: B = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.t: D = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: C = None
        self.q: A = None
        self.o: A = None
        self.z: A = None
        self.p: A = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.z: F = None
        self.q: C = None
        self.w: A = None
        self.x: D = None
        self.p: C = None
        self.u: B = None
        self.r: D = None
        self.txt = txt

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

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