class A:
    def __init__(self, txt: str):
        self.u: H = None
        self.q: J = None
        self.t: F = None
        self.w: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: I = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: G = None
        self.t: J = None
        self.u: D = None
        self.y: G = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: G = None
        self.t: E = None
        self.u: J = None
        self.v: J = None
        self.s: E = None
        self.p: F = None
        self.y: D = None
        self.z: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.y: I = None
        self.r: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: G = None
        self.t: J = None
        self.u: D = None
        self.y: G = None
        self.x: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: E = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.q: C = None
        self.x: G = None
        self.t: E = None
        self.u: J = None
        self.v: J = None
        self.s: E = None
        self.p: F = None
        self.y: D = None
        self.z: J = None
        self.txt = txt

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

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

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

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