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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: F = None
        self.p: H = None
        self.u: A = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: D = None
        self.q: F = None
        self.x: B = None
        self.y: E = None
        self.r: E = None
        self.w: F = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: B = None
        self.o: D = None
        self.z: B = None
        self.r: I = None
        self.y: I = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: C = None
        self.z: D = None
        self.w: A = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: J = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.x: A = None
        self.y: F = None
        self.p: H = None
        self.u: A = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.o: D = None
        self.q: F = None
        self.x: B = None
        self.y: E = None
        self.r: E = None
        self.w: F = None
        self.z: F = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.t: A = None
        self.w: B = None
        self.o: D = None
        self.z: B = None
        self.r: I = None
        self.y: I = None
        self.x: I = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.y: A = None
        self.v: C = None
        self.z: D = None
        self.w: A = None
        self.txt = txt

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

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

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