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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: G = None
        self.p: D = None
        self.v: A = None
        self.q: B = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

g = A("g")
i = B("i")
d = C("d")
n = D("n")
h = E("h")
m = F("m")
c = G("c")
b = H("b")
f = C("f")
k = B("k")

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

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

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

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

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

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.w: G = None
        self.p: D = None
        self.v: A = None
        self.q: B = None
        self.y: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.v: E = None
        self.txt = txt

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

g = A("g")
i = B("i")
d = C("d")
n = D("n")
h = E("h")
m = F("m")
c = G("c")
b = H("b")
f = C("f")
k = B("k")

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