class A:
    def __init__(self, txt: str):
        self.q: I = None
        self.s: H = None
        self.u: E = None
        self.t: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: J = None
        self.q: H = None
        self.t: J = None
        self.z: J = None
        self.s: J = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: C = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.x: I = None
        self.y: J = None
        self.q: H = None
        self.t: J = None
        self.z: J = None
        self.s: J = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.t: E = None
        self.w: C = None
        self.txt = txt

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

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

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

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