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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: J = None
        self.u: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: C = None
        self.z: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: H = None
        self.s: C = None
        self.r: H = None
        self.v: C = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.z: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: E = None
        self.p: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.o: J = None
        self.u: G = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: C = None
        self.z: F = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: H = None
        self.s: C = None
        self.r: H = None
        self.v: C = None
        self.y: J = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

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

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