class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: B = None
        self.z: I = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: H = None
        self.w: E = None
        self.u: E = None
        self.r: G = None
        self.v: E = None
        self.y: C = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: A = None
        self.z: D = None
        self.o: I = None
        self.v: B = None
        self.y: I = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: B = None
        self.v: E = None
        self.z: B = None
        self.q: H = None
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: D = None
        self.q: H = None
        self.r: D = None
        self.p: F = None
        self.y: B = None
        self.txt = txt

m = A("m")
b = B("b")
l = C("l")
a = D("a")
f = E("f")
d = F("d")
k = G("k")
c = H("c")
i = I("i")
e = E("e")

m.s = l
m.v = b
m.z = i
m.q = d
m.r = d
b.q = l
b.y = l
b.x = c
b.w = e
b.u = e
b.t = e
b.r = k
b.v = f
l.o = f
l.v = i
l.p = b
l.x = c
l.q = c
l.w = a
l.t = k
a.t = m
f.p = b
f.v = k
f.q = k
f.s = k
f.x = e
f.o = e
f.r = c
f.w = c
f.y = m
d.u = i
d.o = i
d.y = i
d.t = m
d.z = a
d.v = b
d.x = f
k.w = i
k.t = b
k.z = b
k.v = f
k.q = c
k.s = l
c.w = l
c.q = l
c.o = k
c.r = a
i.x = b
i.y = b
i.u = a
i.r = a
i.q = c
i.p = d
e.p = b
e.v = k
e.q = k
e.s = k
e.x = f
e.o = f
e.r = c
e.w = c
e.y = m
assert b.v.r.w.w.t.txt == "
class A:
    def __init__(self, txt: str):
        self.s: C = None
        self.v: B = None
        self.z: I = None
        self.q: F = None
        self.r: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: H = None
        self.w: E = None
        self.u: E = None
        self.r: G = None
        self.v: E = None
        self.y: C = None
        self.t: E = None
        self.txt = txt

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

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

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

class F:
    def __init__(self, txt: str):
        self.u: I = None
        self.t: A = None
        self.z: D = None
        self.o: I = None
        self.v: B = None
        self.y: I = None
        self.x: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: I = None
        self.t: B = None
        self.v: E = None
        self.z: B = None
        self.q: H = None
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.u: D = None
        self.q: H = None
        self.r: D = None
        self.p: F = None
        self.y: B = None
        self.txt = txt

m = A("m")
b = B("b")
l = C("l")
a = D("a")
f = E("f")
d = F("d")
k = G("k")
c = H("c")
i = I("i")
e = E("e")

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