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

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

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: B = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: A = None
        self.t: F = None
        self.p: C = None
        self.z: C = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.txt = txt

c = A("c")
j = B("j")
f = C("f")
k = D("k")
h = E("h")
m = F("m")
b = F("b")
e = E("e")
d = B("d")
l = D("l")

c.u = f
c.w = d
c.p = b
c.r = j
c.y = l
j.o = d
j.z = c
j.s = e
f.q = j
f.o = h
f.p = c
k.o = f
k.w = f
k.y = j
k.r = h
h.v = c
h.r = c
h.t = b
h.y = b
h.p = f
h.z = f
m.t = d
m.y = b
b.t = j
b.y = m
e.v = c
e.r = c
e.t = m
e.p = f
e.z = f
e.y = b
d.o = j
d.z = c
d.s = h
l.o = f
l.w = f
l.y = d
l.r = h
assert d.s.t.y.y.t.z.p.y.y.y.txt == "
class A:
    def __init__(self, txt: str):
        self.u: C = None
        self.w: B = None
        self.p: F = None
        self.r: B = None
        self.y: D = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.o: C = None
        self.y: B = None
        self.w: C = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.r: A = None
        self.t: F = None
        self.p: C = None
        self.z: C = None
        self.y: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: B = None
        self.y: F = None
        self.txt = txt

c = A("c")
j = B("j")
f = C("f")
k = D("k")
h = E("h")
m = F("m")
b = F("b")
e = E("e")
d = B("d")
l = D("l")

c.u = f
c.w = d
c.p = b
c.r = j
c.y = l
j.o = d
j.z = c
j.s = e
f.q = j
f.o = h
f.p = c
k.o = f
k.w = f
k.y = j
k.r = h
h.v = c
h.r = c
h.t = b
h.y = b
h.p = f
h.z = f
m.t = d
m.y = b
b.t = j
b.y = m
e.v = c
e.r = c
e.t = m
e.p = f
e.z = f
e.y = b
d.o = j
d.z = c
d.s = h
l.o = f
l.w = f
l.y = d
l.r = h
assert d.s.t.y.y.t.z.p.y.y.y.txt == "m"