class A:
    def __init__(self, txt: str):
        self.s: H = None
        self.q: E = None
        self.p: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: A = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: C = None
        self.p: C = None
        self.q: I = None
        self.t: I = None
        self.r: F = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: B = None
        self.o: A = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.q: F = None
        self.o: C = None
        self.w: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: J = None
        self.y: C = None
        self.p: C = None
        self.q: I = None
        self.t: I = None
        self.r: F = None
        self.txt = txt

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

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

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

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