class A:
    def __init__(self, txt: str):
        self.p: F = None
        self.u: G = None
        self.v: E = None
        self.s: C = None
        self.x: B = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.q: B = None
        self.u: D = None
        self.r: F = None
        self.p: E = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: G = None
        self.q: A = None
        self.x: A = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: H = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: D = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: A = None
        self.q: B = None
        self.u: D = None
        self.r: F = None
        self.p: E = None
        self.w: D = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: G = None
        self.q: A = None
        self.x: A = None
        self.w: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: D = None
        self.w: H = None
        self.s: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.x: I = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.w: C = None
        self.t: D = None
        self.txt = txt

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

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

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

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