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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: H = None
        self.x: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: C = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: J = None
        self.y: H = None
        self.x: I = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.x: C = None
        self.o: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

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

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

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