class A:
    def __init__(self, txt: str):
        self.u: I = None
        self.q: G = None
        self.x: F = None
        self.v: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: F = None
        self.x: H = None
        self.w: H = None
        self.o: J = None
        self.u: J = None
        self.y: E = None
        self.t: I = None
        self.r: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: C = None
        self.y: B = None
        self.s: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.y: C = None
        self.z: F = None
        self.txt = txt

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

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

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

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

class G:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: F = None
        self.x: H = None
        self.w: H = None
        self.o: J = None
        self.u: J = None
        self.y: E = None
        self.t: I = None
        self.r: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: C = None
        self.y: B = None
        self.s: D = None
        self.txt = txt

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

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

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