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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: I = None
        self.r: I = None
        self.o: D = None
        self.u: F = None
        self.w: E = None
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: I = None
        self.q: E = None
        self.x: H = None
        self.r: E = None
        self.o: A = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.r: E = None
        self.t: G = None
        self.p: C = None
        self.o: G = None
        self.s: I = None
        self.y: H = None
        self.v: G = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: I = None
        self.x: I = None
        self.r: I = None
        self.o: D = None
        self.u: F = None
        self.w: E = None
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: I = None
        self.q: E = None
        self.x: H = None
        self.r: E = None
        self.o: A = None
        self.z: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: I = None
        self.r: E = None
        self.t: G = None
        self.p: C = None
        self.o: G = None
        self.s: I = None
        self.y: H = None
        self.v: G = None
        self.z: C = None
        self.txt = txt

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

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

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

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

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