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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: E = None
        self.s: C = None
        self.x: F = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: D = None
        self.v: B = None
        self.y: D = None
        self.x: J = None
        self.z: E = None
        self.u: B = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: F = None
        self.w: D = None
        self.o: F = None
        self.y: H = None
        self.p: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: F = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: A = None
        self.q: G = None
        self.v: F = None
        self.t: J = None
        self.p: D = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.z: A = None
        self.p: E = None
        self.s: C = None
        self.x: F = None
        self.t: D = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.p: D = None
        self.r: D = None
        self.v: B = None
        self.y: D = None
        self.x: J = None
        self.z: E = None
        self.u: B = None
        self.s: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.x: J = None
        self.s: F = None
        self.w: D = None
        self.o: F = None
        self.y: H = None
        self.p: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.x: I = None
        self.w: F = None
        self.s: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.z: E = None
        self.x: A = None
        self.q: G = None
        self.v: F = None
        self.t: J = None
        self.p: D = None
        self.txt = txt

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

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

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