class A:
    def __init__(self, txt: str):
        self.v: H = None
        self.o: H = None
        self.s: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: F = None
        self.o: E = None
        self.t: D = None
        self.s: D = None
        self.z: E = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: H = None
        self.u: B = None
        self.p: A = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: A = None
        self.s: H = None
        self.w: E = None
        self.o: I = None
        self.v: E = None
        self.x: G = None
        self.u: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: G = None
        self.x: G = None
        self.v: I = None
        self.t: A = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.x: H = None
        self.p: F = None
        self.o: E = None
        self.t: D = None
        self.s: D = None
        self.z: E = None
        self.w: F = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.z: I = None
        self.s: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: I = None
        self.v: H = None
        self.u: B = None
        self.p: A = None
        self.t: G = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: A = None
        self.s: H = None
        self.w: E = None
        self.o: I = None
        self.v: E = None
        self.x: G = None
        self.u: H = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: E = None
        self.y: G = None
        self.x: G = None
        self.v: I = None
        self.t: A = None
        self.p: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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