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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: H = None
        self.y: E = None
        self.x: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: A = None
        self.u: G = None
        self.o: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: C = None
        self.p: D = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: C = None
        self.x: B = None
        self.v: B = None
        self.y: F = None
        self.p: J = None
        self.txt = txt

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.s: B = None
        self.u: H = None
        self.y: E = None
        self.x: D = None
        self.txt = txt

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

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

class F:
    def __init__(self, txt: str):
        self.w: E = None
        self.q: A = None
        self.u: G = None
        self.o: A = None
        self.txt = txt

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

class H:
    def __init__(self, txt: str):
        self.s: I = None
        self.v: C = None
        self.p: D = None
        self.q: J = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.w: A = None
        self.o: C = None
        self.x: B = None
        self.v: B = None
        self.y: F = None
        self.p: J = None
        self.txt = txt

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

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

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