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

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

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

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

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

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

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

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

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

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

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

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

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

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

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