class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: G = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: C = None
        self.u: B = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.r: A = None
        self.z: G = None
        self.u: F = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: E = None
        self.o: A = None
        self.txt = txt

e = A("e")
n = B("n")
h = C("h")
j = D("j")
b = E("b")
g = F("g")
c = G("c")
i = D("i")
k = D("k")

e.r = c
e.x = c
e.q = c
n.z = g
n.y = e
h.o = e
h.r = n
j.v = n
j.u = n
j.t = h
j.o = h
b.v = e
b.r = e
b.t = g
b.u = g
b.p = g
b.z = c
g.s = n
g.q = c
g.u = c
g.p = k
g.x = h
c.u = b
c.x = b
c.o = e
i.v = n
i.u = n
i.t = h
i.o = h
k.v = n
k.u = n
k.t = h
k.o = h
assert j.o.o.x.o.txt == "
class A:
    def __init__(self, txt: str):
        self.r: G = None
        self.x: G = None
        self.q: G = None
        self.txt = txt

class B:
    def __init__(self, txt: str):
        self.z: F = None
        self.y: A = None
        self.txt = txt

class C:
    def __init__(self, txt: str):
        self.o: A = None
        self.r: B = None
        self.txt = txt

class D:
    def __init__(self, txt: str):
        self.v: B = None
        self.t: C = None
        self.u: B = None
        self.o: C = None
        self.txt = txt

class E:
    def __init__(self, txt: str):
        self.v: A = None
        self.t: F = None
        self.r: A = None
        self.z: G = None
        self.u: F = None
        self.p: F = None
        self.txt = txt

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

class G:
    def __init__(self, txt: str):
        self.u: E = None
        self.x: E = None
        self.o: A = None
        self.txt = txt

e = A("e")
n = B("n")
h = C("h")
j = D("j")
b = E("b")
g = F("g")
c = G("c")
i = D("i")
k = D("k")

e.r = c
e.x = c
e.q = c
n.z = g
n.y = e
h.o = e
h.r = n
j.v = n
j.u = n
j.t = h
j.o = h
b.v = e
b.r = e
b.t = g
b.u = g
b.p = g
b.z = c
g.s = n
g.q = c
g.u = c
g.p = k
g.x = h
c.u = b
c.x = b
c.o = e
i.v = n
i.u = n
i.t = h
i.o = h
k.v = n
k.u = n
k.t = h
k.o = h
assert j.o.o.x.o.txt == "e"