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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: F = None
        self.w: D = None
        self.o: D = None
        self.u: E = None
        self.p: D = None
        self.txt = txt

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

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.s: F = None
        self.w: D = None
        self.o: D = None
        self.u: E = None
        self.p: D = None
        self.txt = txt

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

j.q = i
j.x = n
j.w = l
i.z = l
i.o = l
i.t = n
i.p = j
i.x = h
i.s = m
n.v = e
l.q = j
l.p = j
h.t = n
h.v = f
h.r = i
h.s = i
h.w = a
f.z = i
f.s = k
f.w = l
f.o = l
f.p = l
f.u = m
e.v = n
a.q = j
a.p = j
m.t = e
m.v = k
m.r = i
m.s = i
m.w = a
k.z = i
k.s = f
k.w = a
k.o = a
k.u = h
k.p = l
assert m.s.x.v.u.w.p.q.txt == "i"