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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: G = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: B = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.r: I = None
        self.p: G = None
        self.w: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.txt = txt

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

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

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

class G:
    def __init__(self, txt: str):
        self.v: A = None
        self.z: B = None
        self.r: I = None
        self.txt = txt

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

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

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

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

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