class A:
    def __init__(self, txt: str):
        self.o: F = None
        self.r: H = None
        self.p: I = None
        self.q: F = None
        self.txt = txt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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