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

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

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

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

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

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

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

j.s = k
j.u = h
j.o = n
j.t = a
h.r = k
h.w = k
h.s = k
h.z = e
n.o = k
n.v = h
n.s = a
n.y = a
n.t = e
n.r = e
k.s = a
k.q = a
k.t = e
k.y = n
k.v = n
k.r = j
a.u = n
e.r = k
e.u = h
e.s = h
e.z = h
assert h.s.v.o.txt == "
class A:
    def __init__(self, txt: str):
        self.s: D = None
        self.u: B = None
        self.o: C = None
        self.t: E = None
        self.txt = txt

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

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

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

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

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

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

j.s = k
j.u = h
j.o = n
j.t = a
h.r = k
h.w = k
h.s = k
h.z = e
n.o = k
n.v = h
n.s = a
n.y = a
n.t = e
n.r = e
k.s = a
k.q = a
k.t = e
k.y = n
k.v = n
k.r = j
a.u = n
e.r = k
e.u = h
e.s = h
e.z = h
assert h.s.v.o.txt == "k"