class A:
    def __init__(self, txt: str):
        self.s: F = None
        self.w: D = None
        self.t: D = None
        self.r: B = None
        self.y: I = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: G = None
        self.p: G = None
        self.u: C = None
        self.x: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: A = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: I = None
        self.y: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: B = None
        self.y: D = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: D = None
        self.y: H = None
        self.v: F = None
        self.o: D = None
        self.z: G = None
        self.u: C = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: A = None
        self.y: G = None
        self.p: G = None
        self.u: C = None
        self.x: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: A = None
        self.r: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: J = None
        self.w: I = None
        self.y: A = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: B = None
        self.y: D = None
        self.t: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.q: B = None
        self.r: D = None
        self.y: H = None
        self.v: F = None
        self.o: D = None
        self.z: G = None
        self.u: C = None
        self.txt = txt

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

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