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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.v: G = None
        self.r: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.txt = txt

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

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

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

a.x = n
a.o = b
a.s = b
a.y = h
a.w = k
n.r = a
n.x = a
n.u = k
n.v = j
n.s = b
n.t = b
e.v = d
e.r = b
k.w = a
b.o = k
h.w = n
h.s = d
h.p = j
h.y = j
h.z = k
d.z = i
d.s = h
d.t = j
i.z = d
i.s = h
i.t = j
j.x = n
j.o = b
j.s = b
j.y = h
j.w = k
assert a.y.p.y.s.z.z.t.x.txt == "n"