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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: C = None
        self.u: E = None
        self.w: C = None
        self.t: D = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: D = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.z: G = None
        self.u: A = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: A = None
        self.s: D = None
        self.w: B = None
        self.u: A = None
        self.z: D = None
        self.o: A = None
        self.t: E = None
        self.txt = txt

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

n = A("n")
b = B("b")
k = C("k")
g = D("g")
m = E("m")
d = F("d")
a = G("a")
e = H("e")
l = G("l")

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

class B:
    def __init__(self, txt: str):
        self.x: E = None
        self.y: C = None
        self.u: E = None
        self.w: C = None
        self.t: D = None
        self.o: H = None
        self.r: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.p: A = None
        self.w: D = None
        self.v: G = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: G = None
        self.s: B = None
        self.z: G = None
        self.u: A = None
        self.t: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.x: E = None
        self.r: A = None
        self.s: D = None
        self.w: B = None
        self.u: A = None
        self.z: D = None
        self.o: A = None
        self.t: E = None
        self.txt = txt

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

n = A("n")
b = B("b")
k = C("k")
g = D("g")
m = E("m")
d = F("d")
a = G("a")
e = H("e")
l = G("l")

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