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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: J = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: A = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: B = None
        self.r: B = None
        self.p: A = None
        self.t: E = None
        self.y: J = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.w: I = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: F = None
        self.q: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.r: I = None
        self.v: J = None
        self.t: D = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.z: B = None
        self.w: A = None
        self.t: G = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.o: I = None
        self.x: B = None
        self.r: B = None
        self.p: A = None
        self.t: E = None
        self.y: J = None
        self.txt = txt

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

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

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

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