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

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: F = None
        self.p: A = None
        self.y: I = None
        self.v: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: J = None
        self.o: I = None
        self.v: F = None
        self.w: C = None
        self.s: J = None
        self.z: E = None
        self.t: G = None
        self.p: J = None
        self.txt = txt

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

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

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.u: F = None
        self.p: A = None
        self.y: I = None
        self.v: G = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.x: E = None
        self.u: J = None
        self.o: I = None
        self.v: F = None
        self.w: C = None
        self.s: J = None
        self.z: E = None
        self.t: G = None
        self.p: J = None
        self.txt = txt

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

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

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

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