class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: C = None
        self.p: E = None
        self.v: J = None
        self.z: G = None
        self.x: J = None
        self.t: G = None
        self.y: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: I = None
        self.t: G = None
        self.u: A = None
        self.w: J = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: A = None
        self.x: J = None
        self.w: A = None
        self.u: H = None
        self.o: H = None
        self.q: H = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: D = None
        self.u: C = None
        self.p: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: D = None
        self.txt = txt

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

k.w = n
k.z = n
k.t = n
k.q = c
k.y = c
k.p = d
k.v = e
k.x = e
l.o = f
l.q = f
l.x = d
l.w = d
l.t = c
l.s = k
l.r = a
c.z = i
c.p = f
c.t = n
c.o = n
c.u = k
c.w = e
c.v = l
i.s = n
i.y = k
i.w = k
i.p = k
i.x = e
i.u = a
i.o = a
i.q = a
d.y = f
d.o = i
d.u = c
d.p = e
b.s = e
b.x = e
b.w = f
b.r = f
b.q = a
b.o = k
b.v = n
b.y = l
b.t = c
n.z = a
a.w = b
a.r = n
a.t = k
a.z = k
a.s = c
a.q = c
a.u = d
f.t = n
f.y = c
e.y = f
e.u = i
assert d.u.u.p.p.y.txt == "
class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.q: C = None
        self.p: E = None
        self.v: J = None
        self.z: G = None
        self.x: J = None
        self.t: G = None
        self.y: C = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.p: I = None
        self.t: G = None
        self.u: A = None
        self.w: J = None
        self.o: G = None
        self.v: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: G = None
        self.y: A = None
        self.x: J = None
        self.w: A = None
        self.u: H = None
        self.o: H = None
        self.q: H = None
        self.p: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: I = None
        self.o: D = None
        self.u: C = None
        self.p: J = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: G = None
        self.y: C = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: I = None
        self.u: D = None
        self.txt = txt

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

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