class A:
    def __init__(self, txt: str):
        self.w: E = None
        self.s: B = None
        self.x: F = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: E = None
        self.v: H = None
        self.p: H = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: B = None
        self.s: C = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: E = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: E = None
        self.z: C = None
        self.r: D = None
        self.p: J = None
        self.s: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: E = None
        self.u: F = None
        self.o: I = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.v: C = None
        self.t: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: H = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: E = None
        self.v: H = None
        self.p: H = None
        self.q: B = None
        self.y: A = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.t: E = None
        self.x: B = None
        self.s: C = None
        self.q: C = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.q: B = None
        self.x: E = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: B = None
        self.w: E = None
        self.z: C = None
        self.r: D = None
        self.p: J = None
        self.s: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.x: B = None
        self.q: E = None
        self.u: F = None
        self.o: I = None
        self.txt = txt

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

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