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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.p: I = None
        self.v: A = None
        self.z: I = None
        self.q: E = None
        self.t: A = None
        self.r: D = None
        self.s: G = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: I = None
        self.o: H = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: C = None
        self.y: C = None
        self.w: E = None
        self.x: F = None
        self.q: B = None
        self.u: D = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: I = None
        self.o: A = None
        self.q: G = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.o: H = None
        self.p: I = None
        self.v: A = None
        self.z: I = None
        self.q: E = None
        self.t: A = None
        self.r: D = None
        self.s: G = None
        self.x: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: A = None
        self.q: I = None
        self.o: H = None
        self.y: I = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: I = None
        self.t: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: A = None
        self.v: C = None
        self.y: C = None
        self.w: E = None
        self.x: F = None
        self.q: B = None
        self.u: D = None
        self.z: F = None
        self.s: A = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.r: C = None
        self.u: I = None
        self.o: A = None
        self.q: G = None
        self.txt = txt

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

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

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