class A:
    def __init__(self, txt: str):
        self.u: D = None
        self.o: A = None
        self.t: A = None
        self.r: E = None
        self.p: E = None
        self.w: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: B = None
        self.r: A = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: A = None
        self.o: F = None
        self.u: F = None
        self.p: A = None
        self.txt = txt

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: B = None
        self.p: B = None
        self.r: A = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: E = None
        self.z: A = None
        self.o: F = None
        self.u: F = None
        self.p: A = None
        self.txt = txt

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

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