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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: E = None
        self.p: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: J = None
        self.w: B = None
        self.t: H = None
        self.v: G = None
        self.z: D = None
        self.x: J = None
        self.o: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.v: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.r: E = None
        self.p: D = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: J = None
        self.w: B = None
        self.t: H = None
        self.v: G = None
        self.z: D = None
        self.x: J = None
        self.o: F = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.w: C = None
        self.s: D = None
        self.txt = txt

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

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

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