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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: J = None
        self.v: A = None
        self.q: J = None
        self.p: H = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: B = None
        self.o: J = None
        self.y: J = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: H = None
        self.t: E = None
        self.u: B = None
        self.z: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: H = None
        self.u: B = None
        self.r: D = None
        self.x: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: D = None
        self.o: F = None
        self.q: I = None
        self.w: F = None
        self.p: E = None
        self.t: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.r: F = None
        self.s: J = None
        self.v: A = None
        self.q: J = None
        self.p: H = None
        self.o: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.t: B = None
        self.o: J = None
        self.y: J = None
        self.u: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: G = None
        self.p: H = None
        self.t: E = None
        self.u: B = None
        self.z: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.y: G = None
        self.q: D = None
        self.p: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: H = None
        self.t: H = None
        self.u: B = None
        self.r: D = None
        self.x: D = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.r: E = None
        self.s: D = None
        self.o: F = None
        self.q: I = None
        self.w: F = None
        self.p: E = None
        self.t: B = None
        self.txt = txt

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

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