class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.z: B = None
        self.o: D = None
        self.x: I = None
        self.s: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: D = None
        self.q: I = None
        self.t: G = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: H = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: A = None
        self.r: A = None
        self.y: A = None
        self.s: H = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: E = None
        self.o: C = None
        self.p: A = None
        self.q: G = None
        self.u: A = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: C = None
        self.v: D = None
        self.q: I = None
        self.t: G = None
        self.u: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: A = None
        self.o: H = None
        self.s: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: E = None
        self.u: A = None
        self.r: A = None
        self.y: A = None
        self.s: H = None
        self.o: D = None
        self.txt = txt

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

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

class I:
    def __init__(self, txt: str):
        self.v: E = None
        self.r: E = None
        self.o: C = None
        self.p: A = None
        self.q: G = None
        self.u: A = None
        self.txt = txt

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

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