class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.r: I = None
        self.txt = txt

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: I = None
        self.y: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: A = None
        self.x: G = None
        self.s: I = None
        self.z: F = None
        self.p: G = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: J = None
        self.u: I = None
        self.y: D = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.r: D = None
        self.u: A = None
        self.x: G = None
        self.s: I = None
        self.z: F = None
        self.p: G = None
        self.txt = txt

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

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