class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.x: H = None
        self.v: C = None
        self.r: B = None
        self.q: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: E = None
        self.z: G = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: C = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: E = None
        self.p: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.v: I = None
        self.t: F = None
        self.z: G = None
        self.p: I = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: I = None
        self.t: E = None
        self.z: G = None
        self.v: A = None
        self.y: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.r: A = None
        self.u: I = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: C = None
        self.x: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: D = None
        self.s: E = None
        self.p: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: F = None
        self.q: F = None
        self.v: I = None
        self.t: F = None
        self.z: G = None
        self.p: I = None
        self.txt = txt

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

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