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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: J = None
        self.y: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: E = None
        self.u: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: J = None
        self.o: I = None
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.p: H = None
        self.s: G = None
        self.x: H = None
        self.z: F = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: B = None
        self.v: E = None
        self.x: C = None
        self.o: B = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: J = None
        self.y: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.t: H = None
        self.y: E = None
        self.u: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.u: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: J = None
        self.o: I = None
        self.q: E = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.p: D = None
        self.y: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: G = None
        self.r: D = None
        self.p: H = None
        self.s: G = None
        self.x: H = None
        self.z: F = None
        self.u: B = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.y: G = None
        self.u: B = None
        self.v: E = None
        self.x: C = None
        self.o: B = None
        self.txt = txt

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

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