class A:
    def __init__(self, txt: str):
        self.t: E = None
        self.o: C = None
        self.r: G = None
        self.u: D = None
        self.y: G = None
        self.v: H = None
        self.z: E = None
        self.x: G = None
        self.txt = txt

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: B = None
        self.p: I = None
        self.o: B = None
        self.q: G = None
        self.s: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: B = None
        self.p: I = None
        self.o: B = None
        self.q: G = None
        self.s: F = None
        self.txt = txt

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

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

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