class A:
    def __init__(self, txt: str):
        self.t: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: A = None
        self.v: E = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: I = None
        self.p: G = None
        self.t: G = None
        self.y: G = None
        self.o: I = None
        self.z: I = None
        self.x: D = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: J = None
        self.v: I = None
        self.o: H = None
        self.w: J = None
        self.z: E = None
        self.t: C = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: B = None
        self.w: C = None
        self.u: I = None
        self.o: B = None
        self.x: C = None
        self.z: I = None
        self.v: D = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: F = None
        self.u: A = None
        self.v: E = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: I = None
        self.p: G = None
        self.t: G = None
        self.y: G = None
        self.o: I = None
        self.z: I = None
        self.x: D = None
        self.q: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: J = None
        self.v: I = None
        self.o: H = None
        self.w: J = None
        self.z: E = None
        self.t: C = None
        self.p: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.s: H = None
        self.r: B = None
        self.w: C = None
        self.u: I = None
        self.o: B = None
        self.x: C = None
        self.z: I = None
        self.v: D = None
        self.txt = txt

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

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