class A:
    def __init__(self, txt: str):
        self.v: D = None
        self.o: F = None
        self.q: J = None
        self.p: F = None
        self.y: F = None
        self.x: B = None
        self.w: I = None
        self.r: D = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: A = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: F = None
        self.x: B = None
        self.o: G = None
        self.s: F = None
        self.y: B = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: B = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: D = None
        self.r: E = None
        self.u: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: F = None
        self.s: A = None
        self.w: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.y: E = None
        self.p: A = None
        self.q: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: G = None
        self.w: F = None
        self.x: B = None
        self.o: G = None
        self.s: F = None
        self.y: B = None
        self.q: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: J = None
        self.o: B = None
        self.w: C = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: J = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.s: J = None
        self.p: D = None
        self.r: E = None
        self.u: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.y: C = None
        self.t: F = None
        self.s: A = None
        self.w: F = None
        self.q: C = None
        self.txt = txt

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

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

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

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