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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: H = None
        self.x: C = None
        self.r: F = None
        self.q: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: A = None
        self.w: F = None
        self.s: F = None
        self.q: A = None
        self.z: F = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: H = None
        self.x: C = None
        self.r: F = None
        self.q: E = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.y: G = None
        self.o: A = None
        self.w: F = None
        self.s: F = None
        self.q: A = None
        self.z: F = None
        self.r: D = None
        self.txt = txt

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

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

b.r = h
b.o = l
m.v = l
m.z = l
m.w = j
m.r = j
m.s = n
m.y = n
m.x = h
m.q = i
i.s = l
j.w = l
j.z = l
k.s = m
k.y = g
k.x = i
k.r = l
k.q = h
l.s = n
l.r = j
n.y = f
n.o = b
n.q = b
n.w = l
n.s = l
n.z = l
n.r = j
g.w = l
g.z = m
g.q = m
g.o = m
g.p = k
g.y = j
h.s = m
h.y = g
h.x = i
h.r = l
h.q = k
f.y = n
f.o = b
f.q = b
f.w = l
f.s = l
f.z = l
f.r = j
assert n.o.r.y.y.w.s.r.txt == "j"