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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: G = None
        self.x: J = None
        self.z: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: J = None
        self.x: F = None
        self.v: J = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: C = None
        self.q: I = None
        self.o: A = None
        self.r: E = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: E = None
        self.w: E = None
        self.u: C = None
        self.s: J = None
        self.v: E = None
        self.q: J = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: C = None
        self.r: E = None
        self.o: E = None
        self.v: J = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.y: G = None
        self.x: J = None
        self.z: C = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.w: J = None
        self.x: F = None
        self.v: J = None
        self.r: A = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.y: A = None
        self.z: C = None
        self.q: I = None
        self.o: A = None
        self.r: E = None
        self.v: A = None
        self.w: D = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.t: J = None
        self.x: E = None
        self.w: E = None
        self.u: C = None
        self.s: J = None
        self.v: E = None
        self.q: J = None
        self.y: J = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.o: A = None
        self.u: B = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.p: G = None
        self.u: C = None
        self.r: E = None
        self.o: E = None
        self.v: J = None
        self.txt = txt

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

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

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