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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: C = None
        self.r: I = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: H = None
        self.y: H = None
        self.s: B = None
        self.x: D = None
        self.w: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: A = None
        self.v: C = None
        self.u: J = None
        self.t: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.s: H = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.w: F = None
        self.u: C = None
        self.r: I = None
        self.v: B = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.x: B = None
        self.v: C = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.p: E = None
        self.v: H = None
        self.y: H = None
        self.s: B = None
        self.x: D = None
        self.w: E = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.z: B = None
        self.p: A = None
        self.v: C = None
        self.u: J = None
        self.t: B = None
        self.txt = txt

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

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

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