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

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: I = None
        self.p: E = None
        self.v: E = None
        self.y: F = None
        self.t: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: C = None
        self.o: A = None
        self.y: F = None
        self.w: I = None
        self.x: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: A = None
        self.w: E = None
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: H = None
        self.p: D = None
        self.txt = txt

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

b.y = c
b.v = f
b.s = f
b.z = g
b.o = e
b.r = e
b.w = k
b.x = l
k.z = e
k.q = c
k.p = f
k.v = f
k.y = g
k.t = g
i.o = j
i.r = c
i.u = l
j.w = c
j.r = i
j.z = k
j.x = l
f.r = j
f.t = i
f.o = b
f.y = g
f.w = c
f.x = c
g.s = f
g.r = f
g.x = f
g.q = j
g.y = j
g.v = e
g.u = k
g.o = l
g.w = i
e.u = j
e.p = b
e.w = f
e.s = i
l.v = i
l.o = k
c.t = k
c.q = l
c.p = j
assert g.o.o.q.q.o.t.txt == "
class A:
    def __init__(self, txt: str):
        self.y: I = None
        self.v: E = None
        self.z: F = None
        self.o: G = None
        self.s: E = None
        self.w: B = None
        self.r: G = None
        self.x: H = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: G = None
        self.q: I = None
        self.p: E = None
        self.v: E = None
        self.y: F = None
        self.t: F = None
        self.txt = txt

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

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

class E:
    def __init__(self, txt: str):
        self.r: D = None
        self.t: C = None
        self.o: A = None
        self.y: F = None
        self.w: I = None
        self.x: I = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: D = None
        self.p: A = None
        self.w: E = None
        self.s: C = None
        self.txt = txt

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

class I:
    def __init__(self, txt: str):
        self.t: B = None
        self.q: H = None
        self.p: D = None
        self.txt = txt

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

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