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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: A = None
        self.y: C = None
        self.v: A = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

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

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

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

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

class D:
    def __init__(self, txt: str):
        self.x: E = None
        self.txt = txt

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

class F:
    def __init__(self, txt: str):
        self.x: G = None
        self.txt = txt

class G:
    def __init__(self, txt: str):
        self.z: D = None
        self.s: A = None
        self.y: C = None
        self.v: A = None
        self.r: A = None
        self.o: A = None
        self.txt = txt

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

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