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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: G = None
        self.t: F = None
        self.s: A = None
        self.q: C = None
        self.u: C = None
        self.z: C = None
        self.x: C = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: H = None
        self.s: E = None
        self.v: F = None
        self.x: A = None
        self.o: F = None
        self.t: F = None
        self.q: I = None
        self.p: E = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.t: J = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: H = None
        self.t: B = None
        self.v: J = None
        self.r: H = None
        self.z: J = None
        self.s: H = None
        self.p: G = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: I = None
        self.v: I = None
        self.o: J = None
        self.z: I = None
        self.q: J = None
        self.p: B = None
        self.y: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

f = A("f")
l = B("l")
m = C("m")
a = D("a")
e = E("e")
j = F("j")
d = G("d")
k = H("k")
b = I("b")
n = J("n")

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

class B:
    def __init__(self, txt: str):
        self.o: C = None
        self.r: G = None
        self.t: F = None
        self.s: A = None
        self.q: C = None
        self.u: C = None
        self.z: C = None
        self.x: C = None
        self.w: I = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: A = None
        self.y: H = None
        self.s: E = None
        self.v: F = None
        self.x: A = None
        self.o: F = None
        self.t: F = None
        self.q: I = None
        self.p: E = None
        self.u: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: A = None
        self.p: C = None
        self.t: J = None
        self.q: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: E = None
        self.o: H = None
        self.t: B = None
        self.v: J = None
        self.r: H = None
        self.z: J = None
        self.s: H = None
        self.p: G = None
        self.w: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.y: H = None
        self.u: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: I = None
        self.v: I = None
        self.o: J = None
        self.z: I = None
        self.q: J = None
        self.p: B = None
        self.y: B = None
        self.txt = txt

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

class J:
    def __init__(self, txt: str):
        self.t: I = None
        self.txt = txt

f = A("f")
l = B("l")
m = C("m")
a = D("a")
e = E("e")
j = F("j")
d = G("d")
k = H("k")
b = I("b")
n = J("n")

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