class A:
    def __init__(self, txt: str):
        self.t: C = None
        self.s: B = None
        self.p: F = None
        self.y: C = None
        self.r: I = None
        self.o: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: H = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: J = None
        self.z: D = None
        self.o: B = None
        self.q: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.r: H = None
        self.p: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.r: I = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.w: J = None
        self.z: D = None
        self.o: B = None
        self.q: I = None
        self.txt = txt

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

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

class J:
    def __init__(self, txt: str):
        self.s: C = None
        self.y: C = None
        self.txt = txt

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

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