class A:
    def __init__(self, txt: str):
        self.x: F = None
        self.t: J = None
        self.z: F = None
        self.o: F = None
        self.w: G = None
        self.v: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.x: H = None
        self.s: G = None
        self.z: I = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: A = None
        self.x: I = None
        self.y: A = None
        self.z: C = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: C = None
        self.o: J = None
        self.v: H = None
        self.s: E = None
        self.y: E = None
        self.w: H = None
        self.z: D = None
        self.p: J = None
        self.r: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: J = None
        self.w: F = None
        self.p: A = None
        self.o: B = None
        self.v: B = None
        self.t: J = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: C = None
        self.o: G = None
        self.q: B = None
        self.y: C = None
        self.z: A = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: C = None
        self.w: G = None
        self.u: C = None
        self.z: H = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.t: E = None
        self.v: D = None
        self.x: H = None
        self.s: G = None
        self.z: I = None
        self.w: G = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.r: G = None
        self.t: A = None
        self.x: I = None
        self.y: A = None
        self.z: C = None
        self.o: F = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.q: J = None
        self.x: C = None
        self.o: J = None
        self.v: H = None
        self.s: E = None
        self.y: E = None
        self.w: H = None
        self.z: D = None
        self.p: J = None
        self.r: J = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.z: G = None
        self.r: J = None
        self.w: F = None
        self.p: A = None
        self.o: B = None
        self.v: B = None
        self.t: J = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.r: B = None
        self.x: C = None
        self.o: G = None
        self.q: B = None
        self.y: C = None
        self.z: A = None
        self.v: F = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.t: F = None
        self.s: C = None
        self.w: G = None
        self.u: C = None
        self.z: H = None
        self.txt = txt

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

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