class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.z: F = None
        self.w: E = None
        self.u: I = None
        self.r: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: I = None
        self.o: E = None
        self.s: G = None
        self.z: J = None
        self.u: F = None
        self.t: E = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: J = None
        self.w: H = None
        self.r: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: A = None
        self.u: G = None
        self.o: F = None
        self.t: B = None
        self.v: B = None
        self.y: J = None
        self.q: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: F = None
        self.v: J = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: G = None
        self.q: D = None
        self.p: C = None
        self.r: G = None
        self.txt = txt

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

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

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

class C:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: I = None
        self.o: E = None
        self.s: G = None
        self.z: J = None
        self.u: F = None
        self.t: E = None
        self.w: G = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.y: J = None
        self.w: H = None
        self.r: C = None
        self.txt = txt

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

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

class H:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: A = None
        self.u: G = None
        self.o: F = None
        self.t: B = None
        self.v: B = None
        self.y: J = None
        self.q: A = None
        self.z: C = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.t: C = None
        self.x: F = None
        self.v: J = None
        self.p: H = None
        self.txt = txt

class J:
    def __init__(self, txt: str):
        self.v: D = None
        self.y: G = None
        self.q: D = None
        self.p: C = None
        self.r: G = None
        self.txt = txt

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

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