class A:
    def __init__(self, txt: str):
        self.w: G = None
        self.y: D = None
        self.u: C = None
        self.x: I = None
        self.r: J = None
        self.s: C = None
        self.t: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: E = None
        self.y: E = None
        self.q: E = None
        self.p: J = None
        self.t: E = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: E = None
        self.o: B = None
        self.z: C = None
        self.s: B = None
        self.r: A = None
        self.w: C = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: E = None
        self.x: E = None
        self.y: E = None
        self.q: E = None
        self.p: J = None
        self.t: E = None
        self.z: A = None
        self.txt = txt

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

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: D = None
        self.w: A = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.x: B = None
        self.t: E = None
        self.o: B = None
        self.z: C = None
        self.s: B = None
        self.r: A = None
        self.w: C = None
        self.txt = txt

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

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

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