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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: H = None
        self.t: A = None
        self.r: H = None
        self.u: J = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: A = None
        self.p: G = None
        self.r: D = None
        self.z: D = None
        self.q: J = None
        self.y: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: G = None
        self.v: H = None
        self.y: J = None
        self.o: J = None
        self.z: H = None
        self.s: B = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: G = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.z: H = None
        self.t: A = None
        self.r: H = None
        self.u: J = None
        self.q: A = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.s: H = None
        self.v: A = None
        self.p: G = None
        self.r: D = None
        self.z: D = None
        self.q: J = None
        self.y: J = None
        self.txt = txt

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

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

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

class I:
    def __init__(self, txt: str):
        self.u: E = None
        self.r: G = None
        self.v: H = None
        self.y: J = None
        self.o: J = None
        self.z: H = None
        self.s: B = None
        self.txt = txt

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

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

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