class A:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: H = None
        self.o: J = None
        self.q: J = None
        self.x: H = None
        self.u: G = None
        self.t: J = None
        self.v: J = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: I = None
        self.p: B = None
        self.o: D = None
        self.r: B = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: C = None
        self.q: C = None
        self.y: F = None
        self.z: F = None
        self.v: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: J = None
        self.txt = txt

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.p: J = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.v: J = None
        self.z: I = None
        self.p: B = None
        self.o: D = None
        self.r: B = None
        self.t: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.u: C = None
        self.r: C = None
        self.q: C = None
        self.y: F = None
        self.z: F = None
        self.v: C = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.o: D = None
        self.r: J = None
        self.txt = txt

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

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

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

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