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

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: B = None
        self.o: B = None
        self.x: E = None
        self.z: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: A = None
        self.s: E = None
        self.o: A = None
        self.txt = txt

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

g.x = b
g.u = k
g.t = j
n.r = k
n.o = e
e.r = f
e.w = n
e.o = n
e.x = k
e.z = k
f.o = n
f.v = n
f.w = n
f.y = j
f.t = j
k.s = j
j.t = f
j.z = h
j.o = h
j.s = k
b.o = n
b.v = n
b.w = n
b.y = j
b.t = j
h.x = b
h.u = k
h.t = j
assert j.o.t.s.s.z.t.txt == "
class A:
    def __init__(self, txt: str):
        self.x: D = None
        self.u: E = None
        self.t: F = None
        self.txt = txt

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

class C:
    def __init__(self, txt: str):
        self.r: D = None
        self.w: B = None
        self.o: B = None
        self.x: E = None
        self.z: E = None
        self.txt = txt

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

class E:
    def __init__(self, txt: str):
        self.s: F = None
        self.txt = txt

class F:
    def __init__(self, txt: str):
        self.t: D = None
        self.z: A = None
        self.s: E = None
        self.o: A = None
        self.txt = txt

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

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