class A:
    def __init__(self, txt: str):
        self.p: B = None
        self.o: D = None
        self.s: B = None
        self.y: D = None
        self.z: E = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: F = None
        self.q: C = None
        self.w: C = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: F = None
        self.y: C = None
        self.x: D = None
        self.t: F = None
        self.o: E = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: F = None
        self.r: F = None
        self.q: C = None
        self.w: C = None
        self.u: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: C = None
        self.t: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.q: F = None
        self.y: C = None
        self.x: D = None
        self.t: F = None
        self.o: E = None
        self.txt = txt

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

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