#!/usr/bin/env python3
import re
import sys
SCRIPTS = r'(([\s\r\n]+)+)'
MINJS = ''
LESSJS = ''
STYLES = ''
CSS = ''
def main():
stdin = sys.stdin.read()
conv = re.sub(SCRIPTS, MINJS.format(sys.argv[1]), stdin)
conv = conv.replace(LESSJS, '')
conv = conv.replace(STYLES, CSS.format(sys.argv[2]))
sys.stdout.write(conv)
if __name__ == '__main__':
main()