class A:
    def __init__(self, txt: str):
        self.t: F = None
        self.v: D = None
        self.s: B = None
        self.x: D = None
        self.o: F = None
        self.w: E = None
        self.txt = txt

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: F = None
        self.q: D = None
        self.txt = txt

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

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

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

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

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.u: F = None
        self.q: D = None
        self.txt = txt

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

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

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