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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: G = None
        self.w: F = None
        self.q: F = None
        self.s: E = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: F = None
        self.s: A = None
        self.t: H = None
        self.u: B = None
        self.y: E = None
        self.q: C = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: G = None
        self.w: F = None
        self.q: F = None
        self.s: E = None
        self.x: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: F = None
        self.s: A = None
        self.t: H = None
        self.u: B = None
        self.y: E = None
        self.q: C = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.txt = txt

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

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