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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: A = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.o: C = None
        self.txt = txt

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

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

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

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

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