class A:
    def __init__(self, txt: str):
        self.v: F = None
        self.z: G = None
        self.t: D = None
        self.s: B = None
        self.x: E = None
        self.r: H = None
        self.w: C = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: B = None
        self.x: E = None
        self.v: I = None
        self.txt = txt

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

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.p: I = None
        self.q: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: B = None
        self.x: E = None
        self.v: I = None
        self.txt = txt

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

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

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

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