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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: F = None
        self.z: I = None
        self.y: D = None
        self.q: E = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: I = None
        self.v: I = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: D = None
        self.t: C = None
        self.s: I = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: A = None
        self.p: I = None
        self.z: I = None
        self.t: J = None
        self.q: I = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: G = None
        self.z: E = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.u: H = None
        self.v: F = None
        self.z: I = None
        self.y: D = None
        self.q: E = None
        self.w: G = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: G = None
        self.s: I = None
        self.v: I = None
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.x: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: D = None
        self.t: C = None
        self.s: I = None
        self.o: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: H = None
        self.p: C = None
        self.u: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: C = None
        self.r: A = None
        self.p: I = None
        self.z: I = None
        self.t: J = None
        self.q: I = None
        self.v: H = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: E = None
        self.v: G = None
        self.z: E = None
        self.txt = txt

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

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

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

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