class A:
    def __init__(self, txt: str):
        self.t: G = None
        self.r: C = None
        self.y: D = None
        self.x: D = None
        self.p: G = None
        self.s: D = None
        self.w: J = None
        self.q: I = None
        self.v: G = None
        self.z: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: F = None
        self.y: E = None
        self.p: J = None
        self.q: J = None
        self.z: B = None
        self.u: H = None
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: A = None
        self.w: F = None
        self.t: H = None
        self.s: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.s: I = None
        self.r: F = None
        self.y: E = None
        self.p: J = None
        self.q: J = None
        self.z: B = None
        self.u: H = None
        self.o: E = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.p: I = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.y: A = None
        self.q: A = None
        self.w: F = None
        self.t: H = None
        self.s: A = None
        self.txt = txt

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

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