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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.x: D = None
        self.z: D = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: C = None
        self.p: E = None
        self.x: D = None
        self.z: D = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

h.v = a
h.p = k
h.y = j
h.t = e
m.r = j
m.q = j
m.p = n
m.x = d
m.z = f
j.o = k
j.p = k
j.y = e
j.v = e
j.x = c
j.q = d
f.s = e
f.w = h
f.z = m
k.x = c
k.s = h
k.v = a
k.z = m
e.y = c
e.s = j
e.v = n
d.s = c
d.w = a
d.z = m
a.v = h
a.p = k
a.y = j
a.t = e
c.y = e
c.s = j
c.v = k
n.x = c
n.s = a
n.v = a
n.z = m
assert k.z.r.y.y.y.y.s.txt == "j"