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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.u: G = None
        self.o: C = None
        self.w: A = None
        self.z: C = None
        self.v: A = None
        self.q: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.t: C = None
        self.q: F = None
        self.w: B = None
        self.txt = txt

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

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

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

d = A("d")
l = B("l")
g = C("g")
a = D("a")
m = E("m")
f = F("f")
h = G("h")
n = H("n")
k = A("k")
c = C("c")

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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.y: E = None
        self.u: G = None
        self.o: C = None
        self.w: A = None
        self.z: C = None
        self.v: A = None
        self.q: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.t: C = None
        self.q: F = None
        self.w: B = None
        self.txt = txt

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

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

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

d = A("d")
l = B("l")
g = C("g")
a = D("a")
m = E("m")
f = F("f")
h = G("h")
n = H("n")
k = A("k")
c = C("c")

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