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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: A = None
        self.w: B = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.v: I = None
        self.q: D = None
        self.r: C = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.r: A = None
        self.u: A = None
        self.s: D = None
        self.q: G = None
        self.txt = txt

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

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

class B:
    def __init__(self, txt: str):
        self.o: E = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.q: D = None
        self.x: A = None
        self.w: B = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.y: G = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.p: C = None
        self.z: E = None
        self.v: I = None
        self.q: D = None
        self.r: C = None
        self.o: D = None
        self.txt = txt

class H:
    def __init__(self, txt: str):
        self.u: E = None
        self.txt = txt

class I:
    def __init__(self, txt: str):
        self.o: B = None
        self.z: C = None
        self.r: A = None
        self.u: A = None
        self.s: D = None
        self.q: G = None
        self.txt = txt

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

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