class A:
    def __init__(self, txt: str):
        self.o: H = None
        self.u: D = None
        self.s: G = None
        self.y: F = None
        self.r: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: B = None
        self.o: B = None
        self.w: F = None
        self.y: C = None
        self.r: B = None
        self.z: H = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: A = None
        self.z: A = None
        self.p: D = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: G = None
        self.p: A = None
        self.r: F = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: B = None
        self.o: B = None
        self.w: F = None
        self.y: C = None
        self.r: B = None
        self.z: H = None
        self.s: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.q: C = None
        self.u: A = None
        self.z: A = None
        self.p: D = None
        self.s: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.v: C = None
        self.q: G = None
        self.p: A = None
        self.r: F = None
        self.txt = txt

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

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