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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: D = None
        self.p: H = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: B = None
        self.q: C = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: F = None
        self.v: D = None
        self.u: F = None
        self.t: B = None
        self.p: E = None
        self.o: I = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: A = None
        self.w: G = None
        self.o: E = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: F = None
        self.q: C = None
        self.y: F = None
        self.txt = txt

d = A("d")
l = B("l")
e = C("e")
b = D("b")
g = E("g")
f = F("f")
k = G("k")
h = H("h")
j = I("j")

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

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

class C:
    def __init__(self, txt: str):
        self.r: G = None
        self.u: D = None
        self.p: H = None
        self.o: A = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.o: E = None
        self.y: B = None
        self.q: C = None
        self.v: H = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.z: C = None
        self.r: G = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.z: H = None
        self.y: F = None
        self.v: D = None
        self.u: F = None
        self.t: B = None
        self.p: E = None
        self.o: I = None
        self.w: B = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.s: B = None
        self.r: A = None
        self.w: G = None
        self.o: E = None
        self.v: G = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.u: D = None
        self.r: F = None
        self.q: C = None
        self.y: F = None
        self.txt = txt

d = A("d")
l = B("l")
e = C("e")
b = D("b")
g = E("g")
f = F("f")
k = G("k")
h = H("h")
j = I("j")

d.u = b
d.w = e
d.r = f
l.t = g
e.r = k
e.u = b
e.p = h
e.o = d
b.o = g
b.y = l
b.q = e
b.v = h
g.z = e
g.r = k
f.u = e
f.p = e
f.r = b
f.y = h
f.z = k
f.v = l
k.z = h
k.y = f
k.u = f
k.v = b
k.t = l
k.w = l
k.p = g
k.o = j
h.s = l
h.r = d
h.w = k
h.v = k
h.o = g
j.u = b
j.r = f
j.y = f
j.q = e
assert b.o.z.r.v.y.t.z.txt == "e"