class A:
    def __init__(self, txt: str):
        self.v: E = None
        self.o: B = None
        self.s: D = None
        self.t: H = None
        self.p: B = None
        self.z: B = None
        self.r: E = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.s: G = None
        self.x: F = None
        self.q: F = None
        self.o: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: A = None
        self.x: H = None
        self.o: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

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

class B:
    def __init__(self, txt: str):
        self.t: F = None
        self.z: E = None
        self.s: G = None
        self.x: F = None
        self.q: F = None
        self.o: C = None
        self.txt = txt

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

class D:
    def __init__(self, txt: str):
        self.p: I = None
        self.w: A = None
        self.x: H = None
        self.o: E = None
        self.txt = txt

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

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

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

class H:
    def __init__(self, txt: str):
        self.r: B = None
        self.txt = txt

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

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

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