class A:
    def __init__(self, txt: str):
        self.y: H = None
        self.v: C = None
        self.z: G = None
        self.u: E = None
        self.o: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.r: A = None
        self.t: D = None
        self.p: D = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.v: D = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

c = A("c")
i = B("i")
k = C("k")
a = D("a")
g = E("g")
j = F("j")
m = G("m")
h = H("h")
e = I("e")

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

class B:
    def __init__(self, txt: str):
        self.z: D = None
        self.v: A = None
        self.r: A = None
        self.t: D = None
        self.p: D = None
        self.x: C = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.u: H = None
        self.s: D = None
        self.v: D = None
        self.o: B = None
        self.txt = txt

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

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

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

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

class H:
    def __init__(self, txt: str):
        self.w: F = None
        self.txt = txt

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

c = A("c")
i = B("i")
k = C("k")
a = D("a")
g = E("g")
j = F("j")
m = G("m")
h = H("h")
e = I("e")

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