class A:
    def __init__(self, txt: str):
        self.w: D = None
        self.z: E = None
        self.o: G = None
        self.u: F = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: E = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: H = None
        self.txt = txt

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

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

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

m = A("m")
g = B("g")
k = C("k")
l = D("l")
b = E("b")
i = F("i")
c = G("c")
n = H("n")

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

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

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

class D:
    def __init__(self, txt: str):
        self.r: H = None
        self.x: E = None
        self.q: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: C = None
        self.o: H = None
        self.txt = txt

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

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

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

m = A("m")
g = B("g")
k = C("k")
l = D("l")
b = E("b")
i = F("i")
c = G("c")
n = H("n")

m.w = l
m.z = b
m.o = c
m.u = i
g.p = c
g.u = c
g.y = c
g.x = m
g.z = k
g.w = k
g.t = n
g.q = i
k.v = c
k.u = c
k.q = m
k.r = g
k.w = i
k.y = n
l.r = n
l.q = n
l.x = b
b.r = k
b.o = n
i.p = n
i.q = m
i.u = l
i.o = l
i.x = k
i.s = b
i.z = b
c.o = i
n.y = g
n.t = g
n.q = c
n.r = k
n.p = m
n.x = b
n.z = b
assert k.w.q.w.x.o.x.o.txt == "n"