class A:
    def __init__(self, txt: str):
        self.o: G = None
        self.s: I = None
        self.x: C = None
        self.r: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: C = None
        self.s: J = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: J = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: E = None
        self.w: C = None
        self.s: J = None
        self.x: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.t: G = None
        self.q: J = None
        self.z: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: B = None
        self.txt = txt

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

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

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

class J:
    def __init__(self, txt: str):
        self.z: B = None
        self.v: H = None
        self.txt = txt

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

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