class A:
    def __init__(self, txt: str):
        self.v: I = None
        self.y: D = None
        self.r: F = None
        self.w: G = None
        self.q: D = None
        self.x: C = None
        self.txt = txt

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

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

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: B = None
        self.v: H = None
        self.s: E = None
        self.z: A = None
        self.x: F = None
        self.o: B = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: H = None
        self.w: B = None
        self.t: G = None
        self.p: G = None
        self.s: C = None
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

c = A("c")
k = B("k")
l = C("l")
b = D("b")
n = E("n")
a = F("a")
g = G("g")
h = H("h")
e = I("e")

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

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

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

class D:
    def __init__(self, txt: str):
        self.w: I = None
        self.u: B = None
        self.v: H = None
        self.s: E = None
        self.z: A = None
        self.x: F = None
        self.o: B = None
        self.r: E = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.y: F = None
        self.z: H = None
        self.w: B = None
        self.t: G = None
        self.p: G = None
        self.s: C = None
        self.q: B = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.o: H = None
        self.txt = txt

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

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

c = A("c")
k = B("k")
l = C("l")
b = D("b")
n = E("n")
a = F("a")
g = G("g")
h = H("h")
e = I("e")

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