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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: F = None
        self.o: F = None
        self.r: E = None
        self.s: G = None
        self.w: E = None
        self.txt = txt

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

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

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

j = A("j")
e = B("e")
n = C("n")
k = D("k")
h = E("h")
d = F("d")
f = G("f")

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

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

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

class D:
    def __init__(self, txt: str):
        self.u: B = None
        self.q: F = None
        self.o: F = None
        self.r: E = None
        self.s: G = None
        self.w: E = None
        self.txt = txt

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

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

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

j = A("j")
e = B("e")
n = C("n")
k = D("k")
h = E("h")
d = F("d")
f = G("f")

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