class A:
    def __init__(self, txt: str):
        self.q: E = None
        self.w: J = None
        self.r: I = None
        self.t: E = None
        self.z: D = None
        self.o: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: F = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.w: F = None
        self.s: J = None
        self.v: J = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: H = None
        self.o: E = None
        self.v: A = None
        self.s: G = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: C = None
        self.p: I = None
        self.q: C = None
        self.x: C = None
        self.y: G = None
        self.u: J = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.w: F = None
        self.x: F = None
        self.r: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.x: F = None
        self.p: B = None
        self.w: F = None
        self.s: J = None
        self.v: J = None
        self.y: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: G = None
        self.y: H = None
        self.o: E = None
        self.v: A = None
        self.s: G = None
        self.u: C = None
        self.z: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: H = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.s: I = None
        self.o: C = None
        self.p: I = None
        self.q: C = None
        self.x: C = None
        self.y: G = None
        self.u: J = None
        self.r: D = None
        self.txt = txt

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

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

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

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

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

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