class A:
    def __init__(self, txt: str):
        self.u: E = None
        self.z: E = None
        self.x: D = None
        self.y: F = None
        self.v: D = None
        self.p: D = None
        self.w: H = None
        self.q: D = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: C = None
        self.r: D = None
        self.y: C = None
        self.x: C = None
        self.q: B = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: E = None
        self.r: D = None
        self.x: G = None
        self.v: G = None
        self.z: G = None
        self.t: H = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: F = None
        self.s: A = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.o: D = None
        self.u: C = None
        self.r: D = None
        self.y: C = None
        self.x: C = None
        self.q: B = None
        self.z: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: E = None
        self.r: D = None
        self.x: G = None
        self.v: G = None
        self.z: G = None
        self.t: H = None
        self.s: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: E = None
        self.u: F = None
        self.s: A = None
        self.x: H = None
        self.txt = txt

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

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

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

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

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

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