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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: I = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

class B:
    def __init__(self, txt: str):
        self.p: I = None
        self.y: I = None
        self.z: I = None
        self.txt = txt

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

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

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

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

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

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

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

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

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