class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: G = None
        self.s: J = None
        self.w: G = None
        self.t: I = None
        self.v: F = None
        self.p: F = None
        self.o: J = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: A = None
        self.v: A = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: G = None
        self.x: G = None
        self.u: F = None
        self.z: F = None
        self.w: G = None
        self.q: A = None
        self.o: G = None
        self.s: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: D = None
        self.x: A = None
        self.o: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: B = None
        self.q: E = None
        self.y: E = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

d = A("d")
f = B("f")
e = C("e")
k = D("k")
a = E("a")
c = F("c")
g = G("g")
i = H("i")
n = I("n")
j = J("j")

d.q = a
d.z = g
d.w = g
d.s = j
d.o = j
d.t = n
d.v = c
d.p = c
d.u = k
f.q = i
e.z = k
e.u = d
e.v = d
e.w = g
k.p = c
k.u = c
k.z = c
k.t = g
k.x = g
k.w = g
k.o = g
k.q = d
k.s = j
a.s = c
a.p = c
a.x = g
a.y = k
a.q = k
a.u = e
a.z = j
a.t = i
a.w = f
c.q = e
c.t = k
c.x = d
c.o = g
c.p = f
g.o = n
g.v = k
i.u = d
i.v = f
i.q = a
i.y = a
i.o = j
n.z = g
n.p = c
j.p = e
assert k.q.z.v.s.p.u.q.txt == "
class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.z: G = None
        self.s: J = None
        self.w: G = None
        self.t: I = None
        self.v: F = None
        self.p: F = None
        self.o: J = None
        self.u: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.u: A = None
        self.v: A = None
        self.w: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: F = None
        self.t: G = None
        self.x: G = None
        self.u: F = None
        self.z: F = None
        self.w: G = None
        self.q: A = None
        self.o: G = None
        self.s: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: C = None
        self.t: D = None
        self.x: A = None
        self.o: G = None
        self.p: B = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: B = None
        self.q: E = None
        self.y: E = None
        self.o: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: G = None
        self.p: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.p: C = None
        self.txt = txt

d = A("d")
f = B("f")
e = C("e")
k = D("k")
a = E("a")
c = F("c")
g = G("g")
i = H("i")
n = I("n")
j = J("j")

d.q = a
d.z = g
d.w = g
d.s = j
d.o = j
d.t = n
d.v = c
d.p = c
d.u = k
f.q = i
e.z = k
e.u = d
e.v = d
e.w = g
k.p = c
k.u = c
k.z = c
k.t = g
k.x = g
k.w = g
k.o = g
k.q = d
k.s = j
a.s = c
a.p = c
a.x = g
a.y = k
a.q = k
a.u = e
a.z = j
a.t = i
a.w = f
c.q = e
c.t = k
c.x = d
c.o = g
c.p = f
g.o = n
g.v = k
i.u = d
i.v = f
i.q = a
i.y = a
i.o = j
n.z = g
n.p = c
j.p = e
assert k.q.z.v.s.p.u.q.txt == "a"