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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: G = None
        self.t: D = None
        self.x: I = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: D = None
        self.y: H = None
        self.x: H = None
        self.t: D = None
        self.v: G = None
        self.z: D = None
        self.u: G = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: A = None
        self.q: G = None
        self.p: I = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.o: I = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: G = None
        self.t: D = None
        self.x: I = None
        self.v: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.w: I = None
        self.o: D = None
        self.y: H = None
        self.x: H = None
        self.t: D = None
        self.v: G = None
        self.z: D = None
        self.u: G = None
        self.p: D = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: C = None
        self.t: A = None
        self.q: G = None
        self.p: I = None
        self.txt = txt

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

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

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