class A:
    def __init__(self, txt: str):
        self.z: I = None
        self.u: G = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: E = None
        self.q: A = None
        self.y: B = None
        self.z: E = None
        self.o: C = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.x: A = None
        self.q: A = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.t: E = None
        self.q: A = None
        self.y: B = None
        self.z: E = None
        self.o: C = None
        self.p: C = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.txt = txt

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

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

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