#!/usr/bin/env python
# 
# Copyright 2009 Mark Fiers, Plant & Food Research
# 
# This file is part of Moa - http://github.com/mfiers/Moa
# 
# Moa is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your
# option) any later version.
# 
# Moa is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public
# License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with Moa.  If not, see <http://www.gnu.org/licenses/>.
# 
"""
converts an r2 file to fasta

R2 is a simple format with the identifier & sequence on a single line separated by a single space
No spaces are allowed in the identifier
Separate sequences are printed on separate lines

"""
import os
import sys

while True:
    line = sys.stdin.readline()
    if not line: break
    id,seq = line.strip().split()
    print ">%s\n%s" % (id, seq)
    


