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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: F = None
        self.w: G = None
        self.v: F = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: A = None
        self.q: B = None
        self.y: J = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: I = None
        self.t: F = None
        self.w: G = None
        self.v: F = None
        self.p: G = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: F = None
        self.z: A = None
        self.q: B = None
        self.y: J = None
        self.u: A = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.s: G = None
        self.txt = txt

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

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