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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: A = None
        self.o: D = None
        self.w: C = None
        self.t: F = None
        self.y: I = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: I = None
        self.q: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: A = None
        self.w: G = None
        self.q: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.u: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.u: C = None
        self.v: A = None
        self.o: D = None
        self.w: C = None
        self.t: F = None
        self.y: I = None
        self.s: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: C = None
        self.u: I = None
        self.q: H = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: A = None
        self.w: G = None
        self.q: B = None
        self.txt = txt

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

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