class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: B = None
        self.o: E = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: E = None
        self.q: C = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: D = None
        self.x: B = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: A = None
        self.y: D = None
        self.u: A = None
        self.t: C = None
        self.txt = txt

j = A("j")
b = B("b")
h = C("h")
m = D("m")
n = E("n")
a = F("a")
d = A("d")
k = B("k")
f = A("f")
i = F("i")

j.w = b
j.s = k
j.o = n
j.z = h
b.s = k
b.u = n
b.q = h
b.v = m
h.s = k
h.y = m
h.v = m
h.x = b
h.t = b
m.s = n
m.z = i
m.u = i
m.y = f
m.v = f
n.r = d
a.s = n
a.r = f
a.y = m
a.u = d
a.t = h
d.w = k
d.s = b
d.o = n
d.z = h
k.s = b
k.u = n
k.q = h
k.v = m
f.w = b
f.s = k
f.o = n
f.z = h
i.s = n
i.r = f
i.y = m
i.u = d
i.t = h
assert h.s.u.r.o.r.z.s.u.txt == "
class A:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: B = None
        self.o: E = None
        self.z: C = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: E = None
        self.q: C = None
        self.v: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.y: D = None
        self.x: B = None
        self.v: D = None
        self.t: B = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.r: A = None
        self.y: D = None
        self.u: A = None
        self.t: C = None
        self.txt = txt

j = A("j")
b = B("b")
h = C("h")
m = D("m")
n = E("n")
a = F("a")
d = A("d")
k = B("k")
f = A("f")
i = F("i")

j.w = b
j.s = k
j.o = n
j.z = h
b.s = k
b.u = n
b.q = h
b.v = m
h.s = k
h.y = m
h.v = m
h.x = b
h.t = b
m.s = n
m.z = i
m.u = i
m.y = f
m.v = f
n.r = d
a.s = n
a.r = f
a.y = m
a.u = d
a.t = h
d.w = k
d.s = b
d.o = n
d.z = h
k.s = b
k.u = n
k.q = h
k.v = m
f.w = b
f.s = k
f.o = n
f.z = h
i.s = n
i.r = f
i.y = m
i.u = d
i.t = h
assert h.s.u.r.o.r.z.s.u.txt == "n"