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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: J = None
        self.q: A = None
        self.s: A = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: F = None
        self.o: C = None
        self.u: J = None
        self.txt = txt

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

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

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

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.z: D = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: G = None
        self.p: J = None
        self.q: A = None
        self.s: A = None
        self.x: J = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.p: J = None
        self.w: F = None
        self.o: C = None
        self.u: J = None
        self.txt = txt

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

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

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

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

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

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

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