#!/usr/bin/env pypy3 import math def main(): n = int(input()) print("{:.1e}".format(n).replace("e+", "*10^").replace("^0", "^")) if __name__ == '__main__': main()