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

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: E = None
        self.o: G = None
        self.s: F = None
        self.txt = txt

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

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

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

j = A("j")
g = B("g")
f = C("f")
l = D("l")
a = E("a")
e = F("e")
h = G("h")

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

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

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

class D:
    def __init__(self, txt: str):
        self.q: C = None
        self.v: E = None
        self.o: G = None
        self.s: F = None
        self.txt = txt

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

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

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

j = A("j")
g = B("g")
f = C("f")
l = D("l")
a = E("a")
e = F("e")
h = G("h")

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