class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.t: B = None
        self.q: G = None
        self.r: E = None
        self.y: I = None
        self.u: B = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: D = None
        self.x: G = None
        self.t: I = None
        self.w: E = None
        self.q: A = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: E = None
        self.y: H = None
        self.w: D = None
        self.z: A = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: H = None
        self.w: A = None
        self.t: I = None
        self.s: E = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: D = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: B = None
        self.s: F = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.s: D = None
        self.p: D = None
        self.x: G = None
        self.t: I = None
        self.w: E = None
        self.q: A = None
        self.o: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: A = None
        self.v: E = None
        self.y: H = None
        self.w: D = None
        self.z: A = None
        self.r: E = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.z: A = None
        self.u: H = None
        self.w: A = None
        self.t: I = None
        self.s: E = None
        self.p: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.o: D = None
        self.w: D = None
        self.z: D = None
        self.p: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: C = None
        self.x: G = None
        self.p: H = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: B = None
        self.s: F = None
        self.txt = txt

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

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