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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.z: A = None
        self.w: G = None
        self.t: E = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: A = None
        self.t: J = None
        self.w: G = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: F = None
        self.q: A = None
        self.y: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.p: F = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: H = None
        self.v: J = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.o: D = None
        self.z: A = None
        self.w: G = None
        self.t: E = None
        self.q: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.v: I = None
        self.z: A = None
        self.t: J = None
        self.w: G = None
        self.q: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: A = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: G = None
        self.u: F = None
        self.q: A = None
        self.y: I = None
        self.txt = txt

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

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