class A:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: A = None
        self.u: B = None
        self.t: C = None
        self.x: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: C = None
        self.y: D = None
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

c = A("c")
h = B("h")
j = C("j")
g = D("g")
b = E("b")
n = F("n")
l = C("l")
a = F("a")
e = A("e")
k = F("k")

c.s = e
c.z = e
c.x = e
c.u = h
c.t = j
h.q = e
h.t = j
h.o = j
h.y = g
j.p = g
j.y = b
j.r = n
j.s = k
g.t = a
g.s = e
b.z = j
n.v = a
l.p = g
l.y = b
l.r = k
l.s = a
a.v = k
e.s = c
e.z = c
e.x = c
e.u = h
e.t = j
k.v = n
assert c.z.t.s.v.v.v.v.v.v.v.txt == "
class A:
    def __init__(self, txt: str):
        self.s: A = None
        self.z: A = None
        self.u: B = None
        self.t: C = None
        self.x: A = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.q: A = None
        self.t: C = None
        self.y: D = None
        self.o: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.v: F = None
        self.txt = txt

c = A("c")
h = B("h")
j = C("j")
g = D("g")
b = E("b")
n = F("n")
l = C("l")
a = F("a")
e = A("e")
k = F("k")

c.s = e
c.z = e
c.x = e
c.u = h
c.t = j
h.q = e
h.t = j
h.o = j
h.y = g
j.p = g
j.y = b
j.r = n
j.s = k
g.t = a
g.s = e
b.z = j
n.v = a
l.p = g
l.y = b
l.r = k
l.s = a
a.v = k
e.s = c
e.z = c
e.x = c
e.u = h
e.t = j
k.v = n
assert c.z.t.s.v.v.v.v.v.v.v.txt == "n"