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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: D = None
        self.z: I = None
        self.o: I = None
        self.q: D = None
        self.r: G = None
        self.x: H = None
        self.y: G = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: J = None
        self.p: E = None
        self.o: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: C = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: D = None
        self.u: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: B = None
        self.s: D = None
        self.z: I = None
        self.o: I = None
        self.q: D = None
        self.r: G = None
        self.x: H = None
        self.y: G = None
        self.t: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.q: I = None
        self.z: J = None
        self.p: E = None
        self.o: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.u: H = None
        self.z: C = None
        self.o: B = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.p: H = None
        self.x: D = None
        self.u: J = None
        self.txt = txt

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

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

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