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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: F = None
        self.x: H = None
        self.s: B = None
        self.p: B = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.p: H = None
        self.v: F = None
        self.x: E = None
        self.q: B = None
        self.r: B = None
        self.txt = txt

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

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

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

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

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

class C:
    def __init__(self, txt: str):
        self.t: I = None
        self.z: F = None
        self.x: H = None
        self.s: B = None
        self.p: B = None
        self.u: F = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.w: B = None
        self.s: F = None
        self.txt = txt

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

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

class G:
    def __init__(self, txt: str):
        self.w: B = None
        self.z: D = None
        self.p: H = None
        self.v: F = None
        self.x: E = None
        self.q: B = None
        self.r: B = None
        self.txt = txt

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

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

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

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